Permalink
Browse files

Security Tuners work again

  • Loading branch information...
Ri5ux committed Sep 24, 2018
1 parent 435cdd5 commit ed084e802cbc2ddc91076ff434e27af2ed6d5092
@@ -1,7 +1,7 @@
package org.avp.block;
import org.avp.AliensVsPredator;
import org.avp.BlockHandler;
import org.avp.ItemHandler;
import org.avp.client.gui.GuiBlastdoor;
import org.avp.item.ItemMaintenanceJack;
import org.avp.tile.TileEntityBlastdoor;
@@ -61,7 +61,7 @@ else if (doorSubBlock.isParent())
if (blastdoor != null)
{
if (blastdoor.isOperational() && player.getHeldItemMainhand() != null && player.getHeldItemMainhand().getItem() == AliensVsPredator.items().securityTuner)
if (blastdoor.isOperational() && player.getHeldItemMainhand() != null && player.getHeldItemMainhand().getItem() == ItemHandler.securityTuner)
{
if (blastdoor.playerHoldingRequiredSecurityTuner(player))
{
@@ -98,7 +98,6 @@ public static void showAdministrationGUI(TileEntityBlastdoor blastdoor)
private void onOpen(TileEntityBlastdoor blastdoor, World world, EntityPlayer player)
{
System.out.println("test2");
if (isOpenedByJack(blastdoor, player))
{
blastdoor.setBeingPryedOpen(true);
@@ -136,7 +136,7 @@ public void update()
if (this.isLocked() && !this.isOpen() && this.getWorld().getWorldTime() % 10 == 0)
{
int scanRange = 1;
List<EntityPlayer> players = world.getEntitiesWithinAABB(EntityPlayer.class, new AxisAlignedBB(pos.getX(), pos.getY(), pos.getZ(), pos.getX() + 1, pos.getY() + 1, pos.getZ() + 1).expand(scanRange * 2, 5, scanRange * 2));
List<EntityPlayer> players = world.getEntitiesWithinAABB(EntityPlayer.class, new AxisAlignedBB(pos.getX(), pos.getY(), pos.getZ(), pos.getX() + 1, pos.getY() + 1, pos.getZ() + 1).grow(scanRange * 2, 5, scanRange * 2));
for (EntityPlayer player : players)
{

0 comments on commit ed084e8

Please sign in to comment.