1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Merge pull request #3733 from justtos/patch-1

[Fix] BlockPlacer placing disabled items
This commit is contained in:
Daniel Walsh 2023-01-05 00:32:55 +00:00 committed by GitHub
commit 83e8eff6cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ public class BlockPlacer extends SlimefunItem {
if (item != null) {
// Check if this Item can even be placed down
if (!(item instanceof NotPlaceable)) {
if (!(item instanceof NotPlaceable) && !item.isDisabledIn(dispenser.getWorld())) {
placeSlimefunBlock(item, e.getItem(), facedBlock, dispenser);
}
} else if (!Slimefun.getIntegrations().isCustomItem(e.getItem())) {