Skip to content

Commit 58b8a1a

Browse files
committed
Redstone lamps won't work anyway, since block update resets id
1 parent f5fadd0 commit 58b8a1a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/main/java/ch/njol/skript/effects/EffToggle.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,6 @@ protected void execute(final Event e) {
108108
for (Block b : blocks.getArray(e)) {
109109
int type = b.getTypeId();
110110

111-
// Redstone lamps have separate block ids for off/on.
112-
if (type == Material.REDSTONE_LAMP_OFF.getId()) {
113-
b.setType(Material.REDSTONE_LAMP_ON);
114-
continue;
115-
} else if (type == Material.REDSTONE_LAMP_ON.getId()) {
116-
b.setType(Material.REDSTONE_LAMP_OFF);
117-
continue;
118-
}
119-
120111
byte data = b.getData();
121112
if (doors[type] == true && (data & 0x8) == 0x8) {
122113
b = b.getRelative(BlockFace.DOWN);

0 commit comments

Comments
 (0)