From 7488b480d59f7b248272b984eda4f62a1a3cf34a Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Fri, 3 Apr 2015 19:27:16 +0200 Subject: [PATCH] Prevent TankAir missing block warning for people who haven't updated yet --- src/main/java/tconstruct/TConstruct.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/tconstruct/TConstruct.java b/src/main/java/tconstruct/TConstruct.java index 90dcb933..71cb4919 100644 --- a/src/main/java/tconstruct/TConstruct.java +++ b/src/main/java/tconstruct/TConstruct.java @@ -266,4 +266,13 @@ public class TConstruct public static LiquidCasting tableCasting; public static LiquidCasting basinCasting; public static Detailing chiselDetailing; + + @Mod.EventHandler + public void missingMapping(FMLMissingMappingsEvent event) { + // this will be called because the air-block got removed + for(FMLMissingMappingsEvent.MissingMapping mapping : event.get()) { + if(mapping.name.equals("TConstruct:TankAir")) + mapping.ignore(); + } + } }