multiplayer fix

This commit is contained in:
MachineMuse 2013-03-13 01:26:33 -06:00
parent 327faaa9dd
commit 2fcf27d8f4

View file

@ -68,13 +68,13 @@ public class MusePlayerUtils {
// Somehow this destroys the playerPosition vector -.-
MovingObjectPosition pickedBlock = world.rayTraceBlocks_do_do(playerPosition, playerViewOffset, collisionFlag, !collisionFlag);
playerPosition = Vec3.createVectorHelper(player.posX, player.posY + player.getEyeHeight(), player.posZ);
if (pickedBlock == null) {
return pickedEntity;
} else if (pickedEntity == null) {
return pickedBlock;
} else {
double dBlock = pickedBlock.hitVec.subtract(playerPosition).lengthVector();
playerPosition = Vec3.createVectorHelper(player.posX, player.posY + player.getEyeHeight(), player.posZ);
double dBlock = pickedBlock.hitVec.distanceTo(playerPosition);
if (closestEntity < dBlock) {
return pickedEntity;
} else {