Updated for new Minecraft server.

This commit is contained in:
sk89q 2010-10-30 17:40:02 -07:00
parent 3cbc5b22a4
commit 46b74bd6bc

View File

@ -39,8 +39,9 @@ public class SMServerInterface implements ServerInterface {
if ((type >= 21 && type <= 34) || type == 36) { if ((type >= 21 && type <= 34) || type == 36) {
return false; return false;
} }
return etc.getMCServer().e.d(pt.getBlockX(), pt.getBlockY(), etc.getServer().setBlockAt(type, pt.getBlockX(), pt.getBlockY(),
pt.getBlockZ(), type); pt.getBlockZ());
return true;
} }
/** /**
@ -50,7 +51,8 @@ public class SMServerInterface implements ServerInterface {
* @return * @return
*/ */
public int getBlockType(Vector pt) { 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 * @return
*/ */
public int getBlockData(Vector pt) { 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());
} }
/** /**