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

Update to a better disabled check

Co-authored-by: Daniel Walsh <walshydev@gmail.com>
This commit is contained in:
justtos 2023-01-04 23:11:39 +02:00 committed by GitHub
parent 168484e4ea
commit 7d5c31c285
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) && !item.isDisabled()) {
if (!(item instanceof NotPlaceable) && !item.isDisabledIn(dispenser.getWorld())) {
placeSlimefunBlock(item, e.getItem(), facedBlock, dispenser);
}
} else if (!Slimefun.getIntegrations().isCustomItem(e.getItem())) {