Fixed platform crashes.

This commit is contained in:
Lizbeth Rika committed 2014-08-24 15:43:44 +01:00
1 parent ce5148f5a4
commit 746f7d84fe
1 file changed
+1 -1
@@ -25,7 +25,7 @@ public class TilePlatform extends TileCamo implements IManaCollisionGhost {
public boolean onWanded(EntityPlayer player) {
if(player != null) {
if(player.isSneaking())
if(camo == null || player.isSneaking())
swapSelfAndPass(this, true);
else swapSurroudings(this, false);
return true;