Skip to content

Commit

Permalink
Update src/main/java/ch/njol/skript/expressions/ExprSpawnerType.java
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Miller <[email protected]>
  • Loading branch information
sovdeeth and APickledWalrus authored Jul 1, 2024
1 parent a70a912 commit 115a4d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Class<?>[] acceptChange(Changer.ChangeMode mode) {
@Override
public void change(Event event, Object @Nullable [] delta, ChangeMode mode) {
for (Block b : getExpr().getArray(event)) {
if (b.getType() != Material.SPAWNER)
if (!(b.getState() instanceof CreatureSpawner))
continue;
CreatureSpawner s = (CreatureSpawner) b.getState();
switch (mode) {
Expand Down

0 comments on commit 115a4d9

Please sign in to comment.