mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 06:52:58 +00:00
Fix #395
This commit is contained in:
3 files changed
+5
-4
No files matched your search
@@ -150,7 +150,7 @@ public class BlockOpenCrate extends BlockMod implements ILexiconable, IWandable,
|
||||
@Override
|
||||
public boolean onUsedByWand(EntityPlayer player, ItemStack stack, World world, BlockPos pos, EnumFacing side) {
|
||||
TileOpenCrate crate = (TileOpenCrate) world.getTileEntity(pos);
|
||||
return crate.onWanded(player, stack);
|
||||
return crate.onWanded(world, player, stack);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -19,6 +19,7 @@ import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.network.NetworkManager;
|
||||
import net.minecraft.network.play.server.SPacketUpdateTileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.internal.VanillaPacketDispatcher;
|
||||
import vazkii.botania.common.item.ModItems;
|
||||
|
||||
@@ -186,8 +187,8 @@ public class TileCraftCrate extends TileOpenCrate {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onWanded(EntityPlayer player, ItemStack stack) {
|
||||
if(!player.worldObj.isRemote) {
|
||||
public boolean onWanded(World world, EntityPlayer player, ItemStack stack) {
|
||||
if(!world.isRemote) {
|
||||
craft(false);
|
||||
ejectAll();
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ public class TileOpenCrate extends TileSimpleInventory {
|
||||
worldObj.spawnEntityInWorld(item);
|
||||
}
|
||||
|
||||
public boolean onWanded(EntityPlayer player, ItemStack stack) {
|
||||
public boolean onWanded(World world, EntityPlayer player, ItemStack stack) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user