From 1eb7dbacf14c69a5da64973bd545fae8c4c7871c Mon Sep 17 00:00:00 2001 From: asofold Date: Wed, 13 Mar 2013 22:02:23 +0100 Subject: [PATCH] Remove the old snow-level flag for leveled snow. --- .../neatmonster/nocheatplus/compat/blocks/BlocksMC1_5.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/compat/blocks/BlocksMC1_5.java b/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/compat/blocks/BlocksMC1_5.java index 61f1f07e..4ff773ce 100644 --- a/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/compat/blocks/BlocksMC1_5.java +++ b/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/compat/blocks/BlocksMC1_5.java @@ -71,6 +71,7 @@ public class BlocksMC1_5 implements BlockPropertiesSetup { // 78 Snow addFlags(78, BlockProperties.F_HEIGHT_8_INC); + removeFlags(78, BlockProperties.F_HEIGHT_8SIM_INC); } @@ -86,5 +87,9 @@ public class BlocksMC1_5 implements BlockPropertiesSetup { public static void addFlags(int id, long flags){ BlockProperties.setBlockFlags(id, BlockProperties.getBlockFlags(id) | flags); } + + public static void removeFlags(int id, long flags){ + BlockProperties.setBlockFlags(id, BlockProperties.getBlockFlags(id) & ~flags); + } }