ZotCoreLoader

- исправлен дроп от destroyBlock
- исправлено ломание блоков в аду
This commit is contained in:
Reider745
2023-11-24 19:46:18 +03:00
parent b9c519e3a7
commit f3c3a881f1
2 changed files with 5 additions and 2 deletions
@@ -49,7 +49,9 @@ public class BlockSourceMethods {
}
if(drop){
Item[] drops = block.getDrops(Item.get(0));
Vector3 pos = new Vector3(x, y, z);
for(Item item : drops)
pointer.dropItem(pos, item);
}
defDestroy(pointer, block);
}
@@ -593,9 +593,10 @@ public class NativeCallback {
}
// if block was already destroyed, prevent default action
/*System.out.println(blockSource.getBlockId(x, y, z));
if (blockSource.getBlockId(x, y, z) == 0) {
NativeAPI.preventDefault();
}
}*/
// guard end
isDestroyBlockCallbackInProgress = false;