mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 09:15:38 +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();
|
BlockData data = block.getBlockData();
|
||||||
if (block.getType().equals(fromMaterial) || data instanceof Waterlogged)
|
if (block.getType().equals(fromMaterial) || data instanceof Waterlogged)
|
||||||
{
|
{
|
||||||
Waterlogged waterloggedData = (Waterlogged) data;
|
|
||||||
if (block.getLocation().distanceSquared(center) < (radius * radius))
|
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);
|
waterloggedData.setWaterlogged(false);
|
||||||
block.setBlockData(waterloggedData);
|
block.setBlockData(waterloggedData);
|
||||||
affected++;
|
affected++;
|
||||||
|
Loading…
Reference in New Issue
Block a user