This commit is contained in:
Jesse Boyd 2017-03-06 22:05:06 +11:00
parent bc46688a98
commit 29c5f65840
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -35,7 +35,7 @@ public class BrushListener implements Listener {
com.sk89q.worldedit.entity.Player player = fp.getPlayer();
LocalSession session = fp.getSession();
Tool tool = session.getTool(player);
if (tool != null) {
if (tool instanceof ScrollTool) {
final int slot = event.getNewSlot();
final int oldSlot = event.getPreviousSlot();
final int ri;