settings ported to the annotation based system
This commit is contained in:
1 parent
79495eccd0
commit
734dc95dab
84 files changed
+299
-1238
No files matched your search
@@ -1,6 +1,6 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.CarpetSettings;
|
||||
import carpet.settings.CarpetSettings;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.server.command.CloneCommand;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
@@ -17,7 +17,7 @@ public abstract class CloneCommandMixin
|
||||
{
|
||||
@ModifyConstant(method = "execute", constant = @Constant(intValue = 32768))
|
||||
private static int fillLimit(int original) {
|
||||
return CarpetSettings.getInt("fillLimit");
|
||||
return CarpetSettings.fillLimit;
|
||||
}
|
||||
|
||||
@Redirect(method = "execute", at = @At(
|
||||
@@ -26,6 +26,6 @@ public abstract class CloneCommandMixin
|
||||
))
|
||||
private static void conditionalUpdating(ServerWorld serverWorld, BlockPos blockPos_1, Block block_1)
|
||||
{
|
||||
if (CarpetSettings.b_fillUpdates) serverWorld.updateNeighbors(blockPos_1, block_1);
|
||||
if (CarpetSettings.fillUpdates) serverWorld.updateNeighbors(blockPos_1, block_1);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user