From e83ec38d3113c82cf72803848d7a2d0c5f3a7405 Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 15 Oct 2010 00:26:29 -0700 Subject: [PATCH] Prevented colored cloth blocks in SMServerInterface. --- src/SMServerInterface.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SMServerInterface.java b/src/SMServerInterface.java index 407b2c182..af3a9fda9 100644 --- a/src/SMServerInterface.java +++ b/src/SMServerInterface.java @@ -32,6 +32,10 @@ public class SMServerInterface implements ServerInterface { * @return */ public boolean setBlockType(Vector pt, int type) { + // Can't set colored cloth or crash + if ((type >= 21 && type <= 34) || type == 36) { + return false; + } return etc.getMCServer().e.d(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ(), type); }