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

[1.12.2-1.5.0.2] Crashes on a dedicated server - world.getLoadedEntityList() is client only #33

Open
TigerWalts opened this issue Jan 2, 2024 · 1 comment

Comments

@TigerWalts
Copy link

1.12.2-1.5.0.2 is not server compatible. An event handler uses a client-only method world.getLoadedEntityList().

Description: Exception in server tick loop

java.lang.NoSuchMethodError: net.minecraft.world.World.func_72910_y()Ljava/util/List;
    at arekkuusu.betterhurttimer.common.Events.onNonLivingEntityUpdate(Events.java:45)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_516_Events_onNonLivingEntityUpdate_WorldTickEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
    at net.minecraftforge.fml.common.FMLCommonHandler.onPreWorldTick(FMLCommonHandler.java:287)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:752)
    at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:397)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Thread.java:748)

for (Entity entity : event.world.getLoadedEntityList()) {

@naqaden
Copy link

naqaden commented May 25, 2024

Seems to be fixed. My dedicated server with 1.12.2-1.5.0.6 does not crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants