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>
|
||||
</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>
|
||||
<!-- Filter resources for build.properties -->
|
||||
<resources>
|
||||
|
@ -144,11 +144,11 @@ public class Command_ro extends FreedomCommand
|
||||
{
|
||||
Block block = centerBlock.getRelative(xOffset, yOffset, zOffset);
|
||||
BlockData data = block.getBlockData();
|
||||
if (block.getType().equals(fromMaterial) || data instanceof Waterlogged)
|
||||
{
|
||||
if (block.getLocation().distanceSquared(center) < (radius * radius))
|
||||
{
|
||||
if (fromMaterial.equals(Material.WATER) && data instanceof Waterlogged)
|
||||
{
|
||||
if (data instanceof Waterlogged)
|
||||
{
|
||||
Waterlogged waterloggedData = (Waterlogged)data;
|
||||
waterloggedData.setWaterlogged(false);
|
||||
@ -159,6 +159,11 @@ public class Command_ro extends FreedomCommand
|
||||
block.setType(toMaterial);
|
||||
affected++;
|
||||
}
|
||||
else if (block.getType().equals(fromMaterial))
|
||||
{
|
||||
block.setType(toMaterial);
|
||||
affected++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user