mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 01:39:52 +03:00
21 lines
1010 B
Diff
21 lines
1010 B
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockDropper.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockDropper.java
|
|
@@ -26,7 +26,7 @@
|
|
return new TileEntityDropper();
|
|
}
|
|
|
|
- protected void dispense(World worldIn, BlockPos pos)
|
|
+ public void dispense(World worldIn, BlockPos pos)
|
|
{
|
|
BlockSourceImpl blocksourceimpl = new BlockSourceImpl(worldIn, pos);
|
|
TileEntityDispenser tileentitydispenser = (TileEntityDispenser)blocksourceimpl.getBlockTileEntity();
|
|
@@ -43,7 +43,7 @@
|
|
{
|
|
ItemStack itemstack = tileentitydispenser.getStackInSlot(i);
|
|
|
|
- if (!itemstack.isEmpty())
|
|
+ if (!itemstack.isEmpty() && net.minecraftforge.items.VanillaInventoryCodeHooks.dropperInsertHook(worldIn, pos, tileentitydispenser, i, itemstack))
|
|
{
|
|
EnumFacing enumfacing = (EnumFacing)worldIn.getBlockState(pos).getValue(FACING);
|
|
BlockPos blockpos = pos.offset(enumfacing);
|