The magnetizing ring now pulls items to the center of the player, not the corner.

This commit is contained in:
Vasco Lavos committed 2014-05-21 00:31:42 +01:00
1 parent 20caaf016f
commit cd9ddd739a
1 file changed
+2 -2
@@ -35,9 +35,9 @@ public class ItemMagnetRing extends ItemBauble {
if(!player.isSneaking()) {
int range = 6;
double x = player.posX + 0.5;
double x = player.posX;
double y = player.posY -(player.worldObj.isRemote ? 1.62 : 0) + 0.75;
double z = player.posZ + 0.5;
double z = player.posZ;
List<EntityItem> items = player.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(x - range, y - range, z - range, x + range, y + range, z + range));
for(EntityItem item : items) {