applying altrisi's observations.

This commit is contained in:
gnembon committed 2021-02-17 03:09:41 -04:00
1 parent 5b1ef77009
commit df7a4a6681
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -819,7 +819,7 @@ public class CarpetSettings
"'structureBlockOutlineDistance' may be required for", "'structureBlockOutlineDistance' may be required for",
"correct rendering of long structures."}, "correct rendering of long structures."},
options = {"48", "96", "192", "256"}, options = {"48", "96", "192", "256"},
category = {CREATIVE, CLIENT}, category = CREATIVE,
validate = StructureBlockLimitValidator.class, validate = StructureBlockLimitValidator.class,
strict = false strict = false
) )
@@ -38,7 +38,7 @@ public class UpdateStructureBlockC2SPacketMixin {
) )
private void structureBlockLimitsWrite(PacketByteBuf buf, CallbackInfo ci) { private void structureBlockLimitsWrite(PacketByteBuf buf, CallbackInfo ci) {
//client method, only applicable if with carpet is on the server, or running locally //client method, only applicable if with carpet is on the server, or running locally
if (CarpetSettings.structureBlockLimit >= 128 && (CarpetClient.isCarpet() || CarpetServer.minecraft_server != null)) if (CarpetSettings.structureBlockLimit >= 128)
{ {
buf.writeInt(this.offset.getX()); buf.writeInt(this.offset.getX());
buf.writeInt(this.offset.getY()); buf.writeInt(this.offset.getY());