Currently, i'm doing it using setBlock() in asynctask. It works, but sometimes I getting ConcurrentModificationException
@Override
public void onRun(){
this.level.setBlock(new Vector(x, y, z), Block.get(Block.STONE));
}
OMG, fixed by copying GC function from current nukkitx master branch. Btw, IDEA says that this ArrayList isn't used and a grammar mistake in a comment.
I'm making a command which is used to see someone's enderchest inventory. (Nukkit 1.1 last build after 1.2), Here is the code:
//class which extends player
public void openInventory(Inventory inventory) {
if(this.getSession().isInvsee()){
this.getSession().setInvsee(true)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.