diff options
author | md_5 <git@md-5.net> | 2018-07-24 12:46:21 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-24 12:46:21 +1000 |
commit | 210001701695ed79ae0b6b81e23125671913fe9c (patch) | |
tree | 8cea55c8722886e5b53229c18b2ff9e32b29dd36 /src/main/java/org | |
parent | ca75fead2c8217babd58b2a7e8d15d9886bf74ee (diff) | |
download | craftbukkit-210001701695ed79ae0b6b81e23125671913fe9c.tar craftbukkit-210001701695ed79ae0b6b81e23125671913fe9c.tar.gz craftbukkit-210001701695ed79ae0b6b81e23125671913fe9c.tar.lz craftbukkit-210001701695ed79ae0b6b81e23125671913fe9c.tar.xz craftbukkit-210001701695ed79ae0b6b81e23125671913fe9c.zip |
SPIGOT-4132: Fix missing break in RedstoneWire.setFace
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/data/type/CraftRedstoneWire.java | 4 | ||||
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/impl/CraftRedstoneWire.java | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/data/type/CraftRedstoneWire.java b/src/main/java/org/bukkit/craftbukkit/block/data/type/CraftRedstoneWire.java index 34923dad..c5ec1c55 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/data/type/CraftRedstoneWire.java +++ b/src/main/java/org/bukkit/craftbukkit/block/data/type/CraftRedstoneWire.java @@ -31,12 +31,16 @@ public abstract class CraftRedstoneWire extends CraftBlockData implements Redsto switch (face) { case NORTH: set(NORTH, connection); + break; case EAST: set(EAST, connection); + break; case SOUTH: set(SOUTH, connection); + break; case WEST: set(WEST, connection); + break; default: throw new IllegalArgumentException("Cannot have face " + face); } diff --git a/src/main/java/org/bukkit/craftbukkit/block/impl/CraftRedstoneWire.java b/src/main/java/org/bukkit/craftbukkit/block/impl/CraftRedstoneWire.java index f5b0e84d..45f66eb4 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/impl/CraftRedstoneWire.java +++ b/src/main/java/org/bukkit/craftbukkit/block/impl/CraftRedstoneWire.java @@ -41,12 +41,16 @@ public final class CraftRedstoneWire extends org.bukkit.craftbukkit.block.data.C switch (face) { case NORTH: set(NORTH, connection); + break; case EAST: set(EAST, connection); + break; case SOUTH: set(SOUTH, connection); + break; case WEST: set(WEST, connection); + break; default: throw new IllegalArgumentException("Cannot have face " + face); } |