mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-12-30 13:27:37 +00:00
yes super be retarded (#161)
This commit is contained in:
parent
bbcf4a984b
commit
f7bca3f868
@ -146,11 +146,11 @@ public class Command_ro extends FreedomCommand
|
||||
BlockData data = block.getBlockData();
|
||||
if (block.getType().equals(fromMaterial) || data instanceof Waterlogged)
|
||||
{
|
||||
Waterlogged waterloggedData = (Waterlogged) data;
|
||||
if (block.getLocation().distanceSquared(center) < (radius * radius))
|
||||
{
|
||||
if (fromMaterial.equals(Material.WATER))
|
||||
if (fromMaterial.equals(Material.WATER) && data instanceof Waterlogged)
|
||||
{
|
||||
Waterlogged waterloggedData = (Waterlogged) data;
|
||||
waterloggedData.setWaterlogged(false);
|
||||
block.setBlockData(waterloggedData);
|
||||
affected++;
|
||||
|
Loading…
Reference in New Issue
Block a user