making sure custom structure limits are always working.

This commit is contained in:
gnembon committed 2021-02-18 22:14:50 -04:00
1 parent edd203a1f8
commit fd84a5a6d0
2 files changed
+4 -3

No files matched your search

@@ -38,7 +38,7 @@ public class UpdateStructureBlockC2SPacketMixin {
)
private void structureBlockLimitsWrite(PacketByteBuf buf, CallbackInfo ci) {
//client method, only applicable if with carpet is on the server, or running locally
if (CarpetSettings.structureBlockLimit >= 128)
if (CarpetSettings.structureBlockLimit != CarpetSettings.vanillaStructureBlockLimit)
{
buf.writeInt(this.offset.getX());
buf.writeInt(this.offset.getY());