[Idea]: Folia support for OpenInv #196

Closed
reabuc wants to merge 137 commits from master into master
16 changed files with 264 additions and 88 deletions
Showing only changes of commit 5b18656485 - Show all commits

View File

@@ -17,6 +17,7 @@
package com.lishid.openinv.internal;
import com.lishid.openinv.OpenInv;
import java.util.Objects;
import org.bukkit.entity.HumanEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryType;
@@ -62,7 +63,7 @@ public class OpenInventoryView extends InventoryView {
@Override
public @NotNull String getTitle() {
if (title == null) {
HumanEntity owner = getPlayer();
HumanEntity owner = (HumanEntity) Objects.requireNonNull(inventory.getBukkitInventory().getHolder());
String localTitle = OpenInv.getPlugin(OpenInv.class)
.getLocalizedMessage(