Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Eleksploded committed May 2, 2020
1 parent fe91c28 commit 59a711e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 59a711e

Please sign in to comment.