From 22cbc90b6d55e30543b4df4d8ec27e4d3f322f5a Mon Sep 17 00:00:00 2001 From: TLUL Date: Sun, 14 Aug 2011 03:48:18 -0400 Subject: [PATCH] setTypeIdAndData in LocalWorld is no longer abstract - it now defaults to calling setBlockType and setBlockData. Restores compatibility with SinglePlayerCommands 2.10_2. --- src/main/java/com/sk89q/worldedit/LocalWorld.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/LocalWorld.java b/src/main/java/com/sk89q/worldedit/LocalWorld.java index 59b03dc4a..dd0ff5852 100644 --- a/src/main/java/com/sk89q/worldedit/LocalWorld.java +++ b/src/main/java/com/sk89q/worldedit/LocalWorld.java @@ -94,7 +94,11 @@ public abstract class LocalWorld { * @param data * @return */ - public abstract boolean setTypeIdAndData(Vector pt, int type, int data); + public boolean setTypeIdAndData(Vector pt, int type, int data) { + boolean ret = setBlockType(pt, type); + setBlockData(pt, data); + return ret; + } /** * set block type & data @@ -103,7 +107,11 @@ public abstract class LocalWorld { * @param data * @return */ - public abstract boolean setTypeIdAndDataFast(Vector pt, int type, int data); + public boolean setTypeIdAndDataFast(Vector pt, int type, int data) { + boolean ret = setBlockTypeFast(pt, type); + setBlockDataFast(pt, data); + return ret; + } /** * Get block data.