mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-22 17:17:57 +01:00
Fix fire placement by blocks when fire-spread is set to deny
Fixes #2070
This commit is contained in:
parent
2f93b26be0
commit
65431c7df8
@ -173,7 +173,7 @@ public void onPlaceBlock(final PlaceBlockEvent event) {
|
||||
/* Flint and steel, fire charge, etc. */
|
||||
if (Materials.isFire(type)) {
|
||||
Block block = event.getCause().getFirstBlock();
|
||||
boolean fire = block != null && Materials.isFire(type);
|
||||
boolean fire = block != null && Materials.isFire(block.getType());
|
||||
boolean lava = block != null && Materials.isLava(block.getType());
|
||||
List<StateFlag> flags = new ArrayList<>();
|
||||
flags.add(Flags.BLOCK_PLACE);
|
||||
|
Loading…
Reference in New Issue
Block a user