Better context yes

This commit is contained in:
CocoTheOwner
2021-09-07 17:43:13 +02:00
parent a060c01f58
commit f42e418346
3 changed files with 4 additions and 9 deletions

View File

@@ -449,7 +449,7 @@ public class VirtualDecreeCommand {
value = update;
}
if (i.isContextual() && value == null) {
if (sender.isPlayer() && i.isContextual() && value == null) {
DecreeContextHandler<?> ch = DecreeContextHandler.contextHandlers.get(i.getType());
if (ch != null) {