Pass LocalPlayers to the EditSession getters for easy external access

This commit is contained in:
Ammar Askar
2012-11-13 15:07:08 +05:00
committed by Wizjany
parent 94a549214d
commit 4b50e0e453
8 changed files with 42 additions and 17 deletions

View File

@ -62,7 +62,7 @@ public class CraftScriptContext extends CraftScriptEnvironment {
public EditSession remember() {
EditSession editSession = controller.getEditSessionFactory()
.getEditSession(player.getWorld(),
session.getBlockChangeLimit(), session.getBlockBag(player));
session.getBlockChangeLimit(), session.getBlockBag(player), player);
editSession.enableQueue();
editSessions.add(editSession);
return editSession;