Return instance of CraftInventoryBeacon for Beacons. Fixes BUKKIT-4521

By: T00thpick1 <t00thpick1dirko@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2013-07-18 18:37:20 -04:00
parent 71ba627b21
commit 78dfcd38b3

View file

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