mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
Revert signature changes of public methods that caused crashes (#74)
* restore previous public method signature to prevent crash * don't register the event if vanilla config * revert signature changes * Restore original calculation logic --------- Co-authored-by: OneEyeMaker <[email protected]>
This commit is contained in:
1 parent
3e2ba6ac16
commit
50bd690204
4 files changed
+13
-12
No files matched your search
@@ -185,7 +185,9 @@ public class TConstruct {
|
||||
MinecraftForge.EVENT_BUS.register(playerTracker);
|
||||
NetworkRegistry.INSTANCE.registerGuiHandler(TConstruct.instance, proxy);
|
||||
|
||||
if (PHConstruct.globalDespawn != 6000) MinecraftForge.EVENT_BUS.register(new Spawntercepter());
|
||||
if (PHConstruct.globalDespawn != 6000 && PHConstruct.globalDespawn != 0) {
|
||||
MinecraftForge.EVENT_BUS.register(new Spawntercepter());
|
||||
}
|
||||
|
||||
pulsar.preInit(event);
|
||||
|
||||
@@ -286,8 +288,6 @@ public class TConstruct {
|
||||
|
||||
@SubscribeEvent
|
||||
public void onEntitySpawn(EntityJoinWorldEvent event) {
|
||||
// return if config is zero to keep vanilla functionality
|
||||
if (PHConstruct.globalDespawn == 0) return;
|
||||
if (event.entity instanceof EntityItem) {
|
||||
EntityItem ourGuy = (EntityItem) event.entity;
|
||||
if (ourGuy.lifespan == 6000) {
|
||||
|
||||
Reference in new issue
Block a user