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 committed by Joo200
parent 2f93b26be0
commit 65431c7df8

View File

@ -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);