Fix bug where Fissure could be exploited with Arctic Armour for 'water bending', allowing players to artificially create Water towers by bending temporary ice.

This commit is contained in:
Ty Sayers 2015-09-29 18:47:24 -04:00
parent b4c9bfbb57
commit d870ff6f11

View File

@ -111,9 +111,14 @@ public class FissureData
Block block = _path.get(_handled);
//Cannot raise
if (block.getTypeId() == 46)
//Cannot raise TNT/ICE/WATER
if (block.getTypeId() == 46
|| block.getTypeId() == 79
|| block.getTypeId() == 8
|| block.getTypeId() == 9)
{
return false;
}
Block up = block.getRelative(0, _height + 1, 0);
@ -130,7 +135,6 @@ public class FissureData
if (block.getTypeId() == 1) Host.Factory.BlockRestore().add(block, 4, block.getData(), 14000);
if (block.getTypeId() == 2) Host.Factory.BlockRestore().add(block, 3, block.getData(), 14000);
if (block.getTypeId() == 98) Host.Factory.BlockRestore().add(block, 98, (byte) 0, 14000);
Host.Factory.BlockRestore().add(up, block.getTypeId(), block.getData(), 10000 - (1000 * _height));
_height++;