Skip to content

Commit

Permalink
WHO THOUGHT HAVING A CLIENT ONLY CONSTRUCTOR WAS A GOOD IDEA!?!?! Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazkii committed Nov 1, 2016
1 parent 1e55d1b commit 270edf5
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -21,6 +21,7 @@
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.Explosion;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.world.ExplosionEvent;
Expand All @@ -44,7 +45,8 @@ public ItemGoddessCharm() {
@SubscribeEvent
public static void onExplosion(ExplosionEvent.Detonate event) {
Explosion e = event.getExplosion();
List<EntityPlayer> players = event.getWorld().getEntitiesWithinAABB(EntityPlayer.class, new AxisAlignedBB(e.getPosition(), e.getPosition()).expand(8, 8, 8));
Vec3d vec = e.getPosition();
List<EntityPlayer> players = event.getWorld().getEntitiesWithinAABB(EntityPlayer.class, new AxisAlignedBB(vec.xCoord, vec.yCoord, vec.zCoord, vec.xCoord, vec.yCoord, vec.zCoord).expand(8, 8, 8));

for(EntityPlayer player : players) {
IInventory inv = BaublesApi.getBaubles(player);
Expand Down

0 comments on commit 270edf5

Please sign in to comment.