From 210001701695ed79ae0b6b81e23125671913fe9c Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 24 Jul 2018 12:46:21 +1000 Subject: [PATCH] SPIGOT-4132: Fix missing break in RedstoneWire.setFace --- .../bukkit/craftbukkit/block/data/type/CraftRedstoneWire.java | 4 ++++ .../org/bukkit/craftbukkit/block/impl/CraftRedstoneWire.java | 4 ++++ 2 files changed, 8 insertions(+) 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 34923dad6d..c5ec1c55dd 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 f5b0e84d58..45f66eb408 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); }