mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 04:32:23 +00:00
Fix #2618
This commit is contained in:
1 parent
79f9ea048d
commit
24c542f31f
1 file changed
+1
-1
@@ -86,7 +86,7 @@ public class BlockAlfPortal extends BlockMod implements IWandable, ILexiconable
|
||||
@Override
|
||||
public boolean onUsedByWand(EntityPlayer player, ItemStack stack, World world, BlockPos pos, EnumFacing side) {
|
||||
boolean did = ((TileAlfPortal) world.getTileEntity(pos)).onWanded();
|
||||
if(!world.isRemote && did) {
|
||||
if(!world.isRemote && did && player instanceof EntityPlayerMP) {
|
||||
AlfPortalTrigger.INSTANCE.trigger((EntityPlayerMP) player, (WorldServer) world, pos, stack);
|
||||
}
|
||||
return did;
|
||||
|
||||
Reference in new issue
Block a user