mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
ok retard
This commit is contained in:
parent
7572f77ab6
commit
93e6361148
8
pom.xml
8
pom.xml
@ -189,6 +189,14 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>github</id>
|
||||||
|
<name>GitHub TFPatches Apache Maven Packages</name>
|
||||||
|
<url>https://maven.pkg.github.com/tfpatches/TotalFreedomMod</url>
|
||||||
|
</repository>
|
||||||
|
</distributionManagement>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<!-- Filter resources for build.properties -->
|
<!-- Filter resources for build.properties -->
|
||||||
<resources>
|
<resources>
|
||||||
|
@ -144,13 +144,13 @@ public class Command_ro extends FreedomCommand
|
|||||||
{
|
{
|
||||||
Block block = centerBlock.getRelative(xOffset, yOffset, zOffset);
|
Block block = centerBlock.getRelative(xOffset, yOffset, zOffset);
|
||||||
BlockData data = block.getBlockData();
|
BlockData data = block.getBlockData();
|
||||||
if (block.getType().equals(fromMaterial) || data instanceof Waterlogged)
|
if (block.getLocation().distanceSquared(center) < (radius * radius))
|
||||||
{
|
{
|
||||||
if (block.getLocation().distanceSquared(center) < (radius * radius))
|
if (fromMaterial.equals(Material.WATER) && data instanceof Waterlogged)
|
||||||
{
|
{
|
||||||
if (fromMaterial.equals(Material.WATER) && data instanceof Waterlogged)
|
if (data instanceof Waterlogged)
|
||||||
{
|
{
|
||||||
Waterlogged waterloggedData = (Waterlogged) data;
|
Waterlogged waterloggedData = (Waterlogged)data;
|
||||||
waterloggedData.setWaterlogged(false);
|
waterloggedData.setWaterlogged(false);
|
||||||
block.setBlockData(waterloggedData);
|
block.setBlockData(waterloggedData);
|
||||||
affected++;
|
affected++;
|
||||||
@ -159,6 +159,11 @@ public class Command_ro extends FreedomCommand
|
|||||||
block.setType(toMaterial);
|
block.setType(toMaterial);
|
||||||
affected++;
|
affected++;
|
||||||
}
|
}
|
||||||
|
else if (block.getType().equals(fromMaterial))
|
||||||
|
{
|
||||||
|
block.setType(toMaterial);
|
||||||
|
affected++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user