mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-27 06:31:57 +01:00
SPIGOT-4132: Fix missing break in RedstoneWire.setFace
This commit is contained in:
parent
ca75fead2c
commit
2100017016
2 changed files with 8 additions and 0 deletions
|
@ -31,12 +31,16 @@ public abstract class CraftRedstoneWire extends CraftBlockData implements Redsto
|
||||||
switch (face) {
|
switch (face) {
|
||||||
case NORTH:
|
case NORTH:
|
||||||
set(NORTH, connection);
|
set(NORTH, connection);
|
||||||
|
break;
|
||||||
case EAST:
|
case EAST:
|
||||||
set(EAST, connection);
|
set(EAST, connection);
|
||||||
|
break;
|
||||||
case SOUTH:
|
case SOUTH:
|
||||||
set(SOUTH, connection);
|
set(SOUTH, connection);
|
||||||
|
break;
|
||||||
case WEST:
|
case WEST:
|
||||||
set(WEST, connection);
|
set(WEST, connection);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("Cannot have face " + face);
|
throw new IllegalArgumentException("Cannot have face " + face);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,12 +41,16 @@ public final class CraftRedstoneWire extends org.bukkit.craftbukkit.block.data.C
|
||||||
switch (face) {
|
switch (face) {
|
||||||
case NORTH:
|
case NORTH:
|
||||||
set(NORTH, connection);
|
set(NORTH, connection);
|
||||||
|
break;
|
||||||
case EAST:
|
case EAST:
|
||||||
set(EAST, connection);
|
set(EAST, connection);
|
||||||
|
break;
|
||||||
case SOUTH:
|
case SOUTH:
|
||||||
set(SOUTH, connection);
|
set(SOUTH, connection);
|
||||||
|
break;
|
||||||
case WEST:
|
case WEST:
|
||||||
set(WEST, connection);
|
set(WEST, connection);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("Cannot have face " + face);
|
throw new IllegalArgumentException("Cannot have face " + face);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue