ZotCoreLoader
- исправлен дроп от destroyBlock - исправлено ломание блоков в аду
This commit is contained in:
@@ -49,7 +49,9 @@ public class BlockSourceMethods {
|
|||||||
}
|
}
|
||||||
if(drop){
|
if(drop){
|
||||||
Item[] drops = block.getDrops(Item.get(0));
|
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);
|
defDestroy(pointer, block);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -593,9 +593,10 @@ public class NativeCallback {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if block was already destroyed, prevent default action
|
// if block was already destroyed, prevent default action
|
||||||
|
/*System.out.println(blockSource.getBlockId(x, y, z));
|
||||||
if (blockSource.getBlockId(x, y, z) == 0) {
|
if (blockSource.getBlockId(x, y, z) == 0) {
|
||||||
NativeAPI.preventDefault();
|
NativeAPI.preventDefault();
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// guard end
|
// guard end
|
||||||
isDestroyBlockCallbackInProgress = false;
|
isDestroyBlockCallbackInProgress = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user