mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
cleanup after enabling modern & generic. Primarily changing raw lists to their correct type, changing to pattern variable & enhanced switch and removing unused/unreachable code + ancient comments.
This commit is contained in:
1 parent
e7dc1d9bd4
commit
a5bec6c22b
52 files changed
+273
-489
No files matched your search
@@ -219,10 +219,6 @@ public class TConstruct {
|
||||
@EventHandler
|
||||
public void init(FMLInitializationEvent event) {
|
||||
packetPipeline.initalise();
|
||||
// if (event.getSide() == Side.CLIENT) {
|
||||
// MinecraftForge.EVENT_BUS.register(new EventCloakRender());
|
||||
// }
|
||||
|
||||
DimensionBlacklist.getBadBimensions();
|
||||
GameRegistry.registerWorldGenerator(new SlimeIslandGen(TinkerWorld.slimePool, 2), 2);
|
||||
|
||||
@@ -291,8 +287,7 @@ public class TConstruct {
|
||||
|
||||
@SubscribeEvent
|
||||
public void onEntitySpawn(EntityJoinWorldEvent event) {
|
||||
if (event.entity instanceof EntityItem) {
|
||||
EntityItem ourGuy = (EntityItem) event.entity;
|
||||
if (event.entity instanceof EntityItem ourGuy) {
|
||||
if (ourGuy.lifespan == 6000) {
|
||||
ourGuy.lifespan = PHConstruct.globalDespawn;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user