Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
SPIGOT-4891: LecternInventory.getType() should return InventoryType.LECTERN
Dieser Commit ist enthalten in:
Ursprung
0036d1b753
Commit
70ebefca6b
@ -16,7 +16,6 @@ import net.minecraft.server.TileEntityBrewingStand;
|
||||
import net.minecraft.server.TileEntityDispenser;
|
||||
import net.minecraft.server.TileEntityDropper;
|
||||
import net.minecraft.server.TileEntityFurnace;
|
||||
import net.minecraft.server.TileEntityLectern;
|
||||
import net.minecraft.server.TileEntityShulkerBox;
|
||||
import net.minecraft.server.TileEntitySmoker;
|
||||
import org.apache.commons.lang.Validate;
|
||||
@ -480,7 +479,7 @@ public class CraftInventory implements Inventory {
|
||||
return InventoryType.SHULKER_BOX;
|
||||
} else if (inventory instanceof TileEntityBarrel) {
|
||||
return InventoryType.BARREL;
|
||||
} else if (inventory instanceof TileEntityLectern) {
|
||||
} else if (this instanceof CraftInventoryLectern) {
|
||||
return InventoryType.LECTERN;
|
||||
} else if (this instanceof CraftInventoryLoom) {
|
||||
return InventoryType.LOOM;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren