Fixes normal Inventory being opened instead of EnderChest-Inventory

closes #1
This commit is contained in:
Christian Koop 2021-11-21 19:29:17 +01:00
parent fb06833b27
commit 74bcd22974
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class ViewEnderChestModeration extends AbstractModeration {
protected boolean runModeration(CommandSender runner, OfflinePlayer toModerate) {
Player toModeratePlayer = (Player) toModerate;
((Player) runner).openInventory(toModeratePlayer.getInventory());
((Player) runner).openInventory(toModeratePlayer.getEnderChest());
return false;
}
}