Switch player position to be based on eye/head position - fix hideifundercover problem when in minecarts

This commit is contained in:
Mike Primm 2012-07-30 21:00:52 -05:00
parent c1f351ce27
commit 86167788fa

View file

@ -412,7 +412,7 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
if(player == null) { if(player == null) {
return null; return null;
} }
Location loc = player.getLocation(); Location loc = player.getEyeLocation(); // Use eye location, since we show head
return toLoc(loc); return toLoc(loc);
} }
@Override @Override