Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polyfactory block breaker causes crash when PolyMc on server #227

Closed
zigzag1001 opened this issue Dec 5, 2023 · 0 comments
Closed

Polyfactory block breaker causes crash when PolyMc on server #227

zigzag1001 opened this issue Dec 5, 2023 · 0 comments
Labels
A: bug Something unexpected

Comments

@zigzag1001
Copy link

While trying to use the block breaker/miner from Polyfactory, at the very end of the block break animation, the server crashes.
This only happens when Polymc is present.

I was told that this issue is on Polymc's side -> Patbox/PolyFactory#8 (comment)

Here is the exception:

[02:43:11] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.class_148: Ticking block entity
        at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:901) ~[server-intermediary.jar:?]
        at net.minecraft.class_3176.method_3813(class_3176.java:283) ~[server-intermediary.jar:?]
        at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:820) ~[server-intermediary.jar:?]
        at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:667) ~[server-intermediary.jar:?]
        at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:263) ~[server-intermediary.jar:?]
        at java.lang.Thread.run(Thread.java:1623) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "io.github.theepicblock.polymc.api.PolyMap.isVanillaLikeMap()" because the return value of "io.github.theepicblock.polymc.impl.Util.tryGetPolyMap(net.minecraft.class_3222)" is null
        at io.github.theepicblock.polymc.impl.Util.isPolyMapVanillaLike(Util.java:252) ~[PolyMc-5.5.0+1.20.2.jar:?]
        at io.github.theepicblock.polymc.impl.mixin.CustomBlockBreakingCheck.needsCustomBreaking(CustomBlockBreakingCheck.java:14) ~[PolyMc-5.5.0+1.20.2.jar:?]
        at net.minecraft.class_2248.redirect$zpm000$polymc$worldEventPoly(class_2248.java:1180) ~[server-intermediary.jar:?]
        at net.minecraft.class_2248.method_33614(class_2248.java:481) ~[server-intermediary.jar:?]
        at net.minecraft.class_2248.method_9576(class_2248.java:486) ~[server-intermediary.jar:?]
        at eu.pb4.polyfactory.block.mechanical.machines.MinerBlockEntity.ticker(MinerBlockEntity.java:185) ~[polyfactory-0.2.1+1.20.2.jar:?]
        at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:662) ~[server-intermediary.jar:?]
        at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:716) ~[server-intermediary.jar:?]
        at net.minecraft.class_1937.method_18471(class_1937.java:470) ~[server-intermediary.jar:?]
        at net.minecraft.class_3218.method_18765(class_3218.java:390) ~[server-intermediary.jar:?]
        at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:897) ~[server-intermediary.jar:?]
        ... 5 more
@TheEpicBlock TheEpicBlock added the A: bug Something unexpected label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: bug Something unexpected
Projects
None yet
Development

No branches or pull requests

2 participants