Fix fire placement by blocks when fire-spread is set to deny

Fixes #2070
This commit is contained in:
aurora 2024-05-12 10:13:22 +02:00
parent 2f93b26be0
commit 03c8a4bc8c
No known key found for this signature in database
GPG Key ID: 89839F67B53656AD
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ public class RegionProtectionListener extends AbstractListener {
/* 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);