Skip to content

Commit 65431c7

Browse files
aurorasmilesJoo200
authored andcommitted
Fix fire placement by blocks when fire-spread is set to deny
Fixes #2070
1 parent 2f93b26 commit 65431c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/listener/RegionProtectionListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public void onPlaceBlock(final PlaceBlockEvent event) {
173173
/* Flint and steel, fire charge, etc. */
174174
if (Materials.isFire(type)) {
175175
Block block = event.getCause().getFirstBlock();
176-
boolean fire = block != null && Materials.isFire(type);
176+
boolean fire = block != null && Materials.isFire(block.getType());
177177
boolean lava = block != null && Materials.isLava(block.getType());
178178
List<StateFlag> flags = new ArrayList<>();
179179
flags.add(Flags.BLOCK_PLACE);

0 commit comments

Comments
 (0)