3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-12 22:20:08 +01:00

Only handle primary input in block interact event handler.

Dieser Commit ist enthalten in:
sk89q 2014-06-26 16:58:54 -07:00
Ursprung 900c9b5258
Commit ff7d5aad1a

Datei anzeigen

@ -25,6 +25,7 @@ import com.sk89q.worldedit.command.tool.DoubleActionBlockTool;
import com.sk89q.worldedit.command.tool.Tool;
import com.sk89q.worldedit.entity.Player;
import com.sk89q.worldedit.event.actor.BlockInteractEvent;
import com.sk89q.worldedit.event.actor.InteractionType;
import com.sk89q.worldedit.internal.ServerInterfaceAdapter;
import com.sk89q.worldedit.regions.RegionSelector;
import com.sk89q.worldedit.util.Location;
@ -209,6 +210,7 @@ public class PlatformManager {
// At this time, only handle interaction from players
if (actor instanceof Player) {
if (event.getType() == InteractionType.PRIMARY_INPUT) {
Player player = (Player) actor;
LocalSession session = worldEdit.getSessionManager().get(actor);
@ -253,6 +255,7 @@ public class PlatformManager {
}
}
}
}
/**
* A default configuration for when none is set.