feat: update Nukkit-Mot
This commit is contained in:
Binary file not shown.
@@ -37,6 +37,7 @@ public class CustomBlock extends BlockSolidMeta implements RandomTick {
|
||||
|
||||
Block.solid[id] = block.isSolid();
|
||||
Block.transparent[id] = block.isTransparent();
|
||||
diffusesSkyLight[id] = block.diffusesSkyLight();
|
||||
Block.hardness[id] = block.getHardness();
|
||||
Block.light[id] = block.getLightLevel();
|
||||
|
||||
|
||||
@@ -22,14 +22,13 @@ public class BlocksHooks implements HookClass {
|
||||
@Override
|
||||
public void rebuildField(CtClass ctClass, CtField field) {
|
||||
String name = field.getName();
|
||||
if (name.equals("MAX_BLOCK_ID") || name.equals("usesFakeWater"))
|
||||
if (name.equals("MAX_BLOCK_ID"))
|
||||
field.setModifiers(Modifier.PUBLIC | Modifier.STATIC);
|
||||
}
|
||||
|
||||
@Inject
|
||||
public static void init() {
|
||||
ReflectHelper.setField(Block.class, "MAX_BLOCK_ID", 16000);
|
||||
ReflectHelper.setField(Block.class, "usesFakeWater", new boolean[MAX_ID]);
|
||||
}
|
||||
|
||||
@Inject
|
||||
|
||||
Reference in New Issue
Block a user