From 46b74bd6bcc4e7bc25eda4465215e24f1916cd9f Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 30 Oct 2010 17:40:02 -0700 Subject: [PATCH] Updated for new Minecraft server. --- src/SMServerInterface.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/SMServerInterface.java b/src/SMServerInterface.java index 28c411efd..3a5b5ad80 100644 --- a/src/SMServerInterface.java +++ b/src/SMServerInterface.java @@ -39,8 +39,9 @@ public class SMServerInterface implements ServerInterface { if ((type >= 21 && type <= 34) || type == 36) { return false; } - return etc.getMCServer().e.d(pt.getBlockX(), pt.getBlockY(), - pt.getBlockZ(), type); + etc.getServer().setBlockAt(type, pt.getBlockX(), pt.getBlockY(), + pt.getBlockZ()); + return true; } /** @@ -50,7 +51,8 @@ public class SMServerInterface implements ServerInterface { * @return */ public int getBlockType(Vector pt) { - return etc.getMCServer().e.a(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ()); + return etc.getServer().getBlockIdAt(pt.getBlockX(), pt.getBlockY(), + pt.getBlockZ()); } /** @@ -72,7 +74,8 @@ public class SMServerInterface implements ServerInterface { * @return */ public int getBlockData(Vector pt) { - return etc.getMCServer().e.b(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ()); + return etc.getServer().getBlockData(pt.getBlockX(), pt.getBlockY(), + pt.getBlockZ()); } /**