Remove unneeded clone

This commit is contained in:
Shevchik 2014-03-07 20:25:58 +04:00
parent 613f1e7b41
commit 0473d1c7dd

View File

@ -186,7 +186,7 @@ public class TrySitEventListener implements Listener {
stairs = (Stairs) block.getState().getData(); stairs = (Stairs) block.getState().getData();
} }
Location plocation = block.getLocation().clone(); Location plocation = block.getLocation();
plocation.add(0.5D, (sh - 0.5D), 0.5D); plocation.add(0.5D, (sh - 0.5D), 0.5D);
// Rotate the player's view to the descending side of the block. // Rotate the player's view to the descending side of the block.