Remove spaces. Remove no needed code.

This commit is contained in:
Shevchik 2013-09-03 01:06:21 +04:00
parent db0fc55432
commit 401aacaf3a
3 changed files with 1 additions and 14 deletions

View File

@ -297,10 +297,8 @@ public class EventListener implements Listener {
plugin.sitstopteleportloc.put(player.getName(), player.getLocation()); plugin.sitstopteleportloc.put(player.getName(), player.getLocation());
player.teleport(plocation); player.teleport(plocation);
Entity arrow = block.getWorld().spawnArrow(getBlockCentre(block).subtract(0, 0.5, 0), new Vector(0, 0, 0), 0, 0); Entity arrow = block.getWorld().spawnArrow(block.getLocation().add(0.5, 0 , 0.5), new Vector(0, 0, 0), 0, 0);
arrow.setPassenger(player); arrow.setPassenger(player);
player.setSneaking(false);
arrow.setTicksLived(1);
plugin.sit.put(player.getName(), arrow); plugin.sit.put(player.getName(), arrow);
plugin.sitblock.put(block, player.getName()); plugin.sitblock.put(block, player.getName());
plugin.sitblockbr.put(player.getName(), block); plugin.sitblockbr.put(player.getName(), block);
@ -322,12 +320,6 @@ public class EventListener implements Listener {
plugin.sittask.put(player.getName(), task); plugin.sittask.put(player.getName(), task);
} }
// https://github.com/sk89q/craftbook/blob/master/src/main/java/com/sk89q/craftbook/util/BlockUtil.java
public static Location getBlockCentre(Block block) {
return block.getLocation().add(0.5, 0.5, 0.5);
}
private int getChairWidth(Block block, BlockFace face) { private int getChairWidth(Block block, BlockFace face) {
int width = 0; int width = 0;

View File

@ -20,7 +20,6 @@ public class PacketListener {
falledPlayerDismountListener(); falledPlayerDismountListener();
} }
private void playerDismountListener() private void playerDismountListener()
{ {
pm.getAsynchronousManager().registerAsyncHandler( pm.getAsynchronousManager().registerAsyncHandler(
@ -50,7 +49,6 @@ public class PacketListener {
}).syncStart(); }).syncStart();
} }
private void falledPlayerDismountListener() private void falledPlayerDismountListener()
{ {
pm.getAsynchronousManager().registerAsyncHandler( pm.getAsynchronousManager().registerAsyncHandler(
@ -76,7 +74,4 @@ public class PacketListener {
}).syncStart(); }).syncStart();
} }
} }

Binary file not shown.