From 59a711eb0a1533c99500b5d6aec8b88ed2c96297 Mon Sep 17 00:00:00 2001 From: Eleksploded Date: Fri, 1 May 2020 21:43:36 -0700 Subject: [PATCH] Oops --- .../com/eleksploded/lavadynamics/arrow/EntityVolcanoArrow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/1.12.2/src/main/java/com/eleksploded/lavadynamics/arrow/EntityVolcanoArrow.java b/1.12.2/src/main/java/com/eleksploded/lavadynamics/arrow/EntityVolcanoArrow.java index 56a1251..a53b213 100644 --- a/1.12.2/src/main/java/com/eleksploded/lavadynamics/arrow/EntityVolcanoArrow.java +++ b/1.12.2/src/main/java/com/eleksploded/lavadynamics/arrow/EntityVolcanoArrow.java @@ -12,6 +12,7 @@ import net.minecraft.util.math.RayTraceResult; import net.minecraft.world.World; import net.minecraft.world.chunk.Chunk; +import net.minecraftforge.fml.common.FMLCommonHandler; public class EntityVolcanoArrow extends EntityArrow { @@ -40,7 +41,7 @@ protected void onHit(RayTraceResult raytraceResultIn) EntityPlayer player = (EntityPlayer) shootingEntity; if(entity == null) { - if(player.canUseCommand(4, "spawnvolcano")) { + if(FMLCommonHandler.instance().getMinecraftServerInstance().getPlayerList().getOppedPlayers().getEntry(player.getGameProfile()) != null) { BlockPos blockpos = raytraceResultIn.getBlockPos(); world.setBlockState(blockpos, LavaDynamics.VolcanoBlock.getDefaultState()); Chunk chunk = world.getChunkFromBlockCoords(blockpos);