mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
Return instance of CraftInventoryBeacon for Beacons. Fixes BUKKIT-4521
This commit is contained in:
parent
92f111cfed
commit
ea39ca187b
@ -5,7 +5,7 @@ import net.minecraft.server.TileEntityBeacon;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.Beacon;
|
||||
import org.bukkit.craftbukkit.CraftWorld;
|
||||
import org.bukkit.craftbukkit.inventory.CraftInventory;
|
||||
import org.bukkit.craftbukkit.inventory.CraftInventoryBeacon;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
public class CraftBeacon extends CraftBlockState implements Beacon {
|
||||
@ -20,7 +20,7 @@ public class CraftBeacon extends CraftBlockState implements Beacon {
|
||||
}
|
||||
|
||||
public Inventory getInventory() {
|
||||
return new CraftInventory(beacon);
|
||||
return new CraftInventoryBeacon(beacon);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user