Skip to content

Commit

Permalink
Update EventsHandler.java
Browse files Browse the repository at this point in the history
switches this check order, should deal with cases where mods don't give dimension keys to their fake worlds.
  • Loading branch information
Thutmose committed Mar 5, 2021
1 parent 86df8c0 commit 69576d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ private static void onTileCaps(final AttachCapabilitiesEvent<TileEntity> event)

private static void onWorldCaps(final AttachCapabilitiesEvent<World> event)
{
if (event.getObject() instanceof ServerWorld && event.getObject().getDimensionKey().equals(World.OVERWORLD))
if (event.getObject() instanceof ServerWorld && World.OVERWORLD.equals(event.getObject().getDimensionKey()))
PokecubeSerializer.newInstance((ServerWorld) event.getObject());
}

Expand Down

0 comments on commit 69576d3

Please sign in to comment.