mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
The magnetizing ring now pulls items to the center of the player, not the corner.
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user