Browse Source

Reorder respawn + dimensionchange for #55

master
Robotia 9 years ago
parent
commit
064e95dcd2
  1. 2
      patches/net/minecraft/server/management/ServerConfigurationManager.java.patch

2
patches/net/minecraft/server/management/ServerConfigurationManager.java.patch

@ -625,9 +625,9 @@
+ // If world changed then fire the appropriate change world event else respawn + // If world changed then fire the appropriate change world event else respawn
+ if (fromWorld != location.getWorld()) + if (fromWorld != location.getWorld())
+ { + {
+ FMLCommonHandler.instance().firePlayerRespawnEvent(entityplayermp1);
+ FMLCommonHandler.instance().firePlayerChangedDimensionEvent(entityplayermp1, ((CraftWorld) fromWorld).getHandle().provider.dimensionId, + FMLCommonHandler.instance().firePlayerChangedDimensionEvent(entityplayermp1, ((CraftWorld) fromWorld).getHandle().provider.dimensionId,
+ ((CraftWorld) location.getWorld()).getHandle().provider.dimensionId, (CraftWorld) fromWorld); // Cauldron - fire forge changed dimension event + ((CraftWorld) location.getWorld()).getHandle().provider.dimensionId, (CraftWorld) fromWorld); // Cauldron - fire forge changed dimension event
+ FMLCommonHandler.instance().firePlayerRespawnEvent(entityplayermp1);
+ } + }
+ else + else
+ FMLCommonHandler.instance().firePlayerRespawnEvent(entityplayermp1); + FMLCommonHandler.instance().firePlayerRespawnEvent(entityplayermp1);

Loading…
Cancel
Save