Make /fillbiome limit customisable with fillLimit (#1605)
This commit is contained in:
1 parent
09155fd54c
commit
b63dfa1b0a
3 files changed
+19
-1
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.CarpetSettings;
|
||||
import net.minecraft.server.commands.FillBiomeCommand;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(FillBiomeCommand.class)
|
||||
public class FillBiomeCommandMixin
|
||||
{
|
||||
@ModifyConstant(method = "fill", constant = @Constant(intValue = 32768))
|
||||
private static int fillLimit(int original)
|
||||
{
|
||||
return CarpetSettings.fillLimit;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user