Skip to content

Commit

Permalink
Фикс ошибкм
Browse files Browse the repository at this point in the history
Спасите, меня заразил Макс делать коммиты и не проверять
  • Loading branch information
Reider745 committed Dec 31, 2023
1 parent 40a130d commit 972625a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/reider745/hooks/BiomesHooks.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ public void rebuildField(CtClass ctClass, CtField field) {
String name = field.getName();
if (name.equals("biomes")) {
field.setModifiers(Modifier.PUBLIC | Modifier.STATIC);

}
}

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)
Expand Down

0 comments on commit 972625a

Please sign in to comment.