Disable USE_BLOCK permission for guests and then try to right-click on blocks in foreign claimed chunks that isn't owned by any of your allies.
Version
2.3.1
Other
java.lang.ClassCastException: class net.minecraft.class_746 cannot be cast to class net.minecraft.class_3222 (net.minecraft.class_746 and net.minecraft.class_3222 are in unnamed module of loader net.fabricmc.loader.impl.launch.knot.KnotClassLoader @80ec1f8)
at io.icker.factions.core.InteractionManager.onUseBlock(InteractionManager.java:62)
at net.fabricmc.fabric.api.event.player.UseBlockCallback.lambda$static$0(UseBlockCallback.java:41)
at net.minecraft.class_636.handler$bao000$interactBlock(class_636.java:1684)
at net.minecraft.class_636.method_2896(class_636.java:327)
at net.minecraft.class_310.method_1583(class_310.java:1748)
at net.minecraft.class_310.method_1508(class_310.java:2002)
at net.minecraft.class_310.method_1574(class_310.java:1829)
at net.minecraft.class_310.method_1523(class_310.java:1135)
at net.minecraft.class_310.method_1514(class_310.java:768)
at net.minecraft.client.main.Main.method_44604(Main.java:244)
at net.minecraft.client.main.Main.main(Main.java:51)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Expected behavior
The mod should refuse the block interaction.
Observed/actual behavior
The game fully crashed.
Steps/models to reproduce
Disable USE_BLOCK permission for guests and then try to right-click on blocks in foreign claimed chunks that isn't owned by any of your allies.
Version
2.3.1
Other
java.lang.ClassCastException: class net.minecraft.class_746 cannot be cast to class net.minecraft.class_3222 (net.minecraft.class_746 and net.minecraft.class_3222 are in unnamed module of loader net.fabricmc.loader.impl.launch.knot.KnotClassLoader @80ec1f8) at io.icker.factions.core.InteractionManager.onUseBlock(InteractionManager.java:62) at net.fabricmc.fabric.api.event.player.UseBlockCallback.lambda$static$0(UseBlockCallback.java:41) at net.minecraft.class_636.handler$bao000$interactBlock(class_636.java:1684) at net.minecraft.class_636.method_2896(class_636.java:327) at net.minecraft.class_310.method_1583(class_310.java:1748) at net.minecraft.class_310.method_1508(class_310.java:2002) at net.minecraft.class_310.method_1574(class_310.java:1829) at net.minecraft.class_310.method_1523(class_310.java:1135) at net.minecraft.class_310.method_1514(class_310.java:768) at net.minecraft.client.main.Main.method_44604(Main.java:244) at net.minecraft.client.main.Main.main(Main.java:51) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)