Skip to content

Commit

Permalink
Controllabe NPCs stop only on shift-left/right click now
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 11, 2013
1 parent aeba28d commit e0e209f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/trait/Controllable.java
Expand Up @@ -120,7 +120,7 @@ public boolean mount(Player toMount) {

@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
if (!npc.isSpawned() || !enabled)
if (!npc.isSpawned() || !enabled || !event.getPlayer().isSneaking())
return;
EntityPlayer handle = ((CraftPlayer) event.getPlayer()).getHandle();
Action performed = event.getAction();
Expand Down
1 change: 0 additions & 1 deletion src/main/java/net/citizensnpcs/util/Util.java
Expand Up @@ -71,7 +71,6 @@ public static Random getFastRandom() {
new Random().nextBytes(seed);
return RNG_CONSTRUCTOR.newInstance(seed);
} catch (Exception e) {
e.printStackTrace();
return new Random();
}
}
Expand Down

0 comments on commit e0e209f

Please sign in to comment.