Removed the opening of GuiReplaySaving to allow for more general approach

This commit is contained in:
CrushedPixel
2015-06-01 11:05:03 +02:00
parent 98c2b65023
commit 7aaae3ea5c
4 changed files with 12 additions and 16 deletions

View File

@@ -69,10 +69,14 @@ public class GuiEventHandler {
}
if(!AuthenticationHandler.isAuthenticated()) return;
/*
if(event.gui != null && GuiReplaySaving.replaySaving && !allowedGUIs.contains(event.gui.getClass())) {
event.gui = new GuiReplaySaving(event.gui);
return;
}
*/
if(event.gui instanceof GuiChat || event.gui instanceof GuiInventory) {
if(ReplayHandler.isInReplay()) {
event.setCanceled(true);