Фикс ошибкм
Спасите, меня заразил Макс делать коммиты и не проверять
This commit is contained in:
@@ -37,12 +37,11 @@ public class BiomesHooks implements HookClass {
|
|||||||
String name = field.getName();
|
String name = field.getName();
|
||||||
if (name.equals("biomes")) {
|
if (name.equals("biomes")) {
|
||||||
field.setModifiers(Modifier.PUBLIC | Modifier.STATIC);
|
field.setModifiers(Modifier.PUBLIC | Modifier.STATIC);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void init() throws NoSuchFieldException {
|
public static void init() throws NoSuchFieldException {
|
||||||
ReflectHelper.setField(Biome.class, "biomes", new Biome[MAX_ID]);
|
//ReflectHelper.setField(Biome.class, "biomes", new Biome[MAX_ID]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(className = "cn.nukkit.network.protocol.BiomeDefinitionListPacket", type = TypeHook.BEFORE_REPLACE)
|
@Inject(className = "cn.nukkit.network.protocol.BiomeDefinitionListPacket", type = TypeHook.BEFORE_REPLACE)
|
||||||
|
|||||||
Reference in New Issue
Block a user