SPIGOT-4132: Fix missing break in RedstoneWire.setFace

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2018-07-24 12:46:21 +10:00
parent 969eecd95e
commit 7c7ba573a9
2 changed files with 8 additions and 0 deletions

View file

@ -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);
}

View file

@ -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);
}