Fix anvil inventories in old minecraft versions

This commit is contained in:
fullwall 2024-04-06 20:34:28 +08:00
parent fcd2908723
commit 3563413c06
10 changed files with 10 additions and 10 deletions

View File

@ -921,7 +921,7 @@ public class NMSImpl implements NMSBridge {
@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
try {
this.bukkitEntity = new CraftInventoryView(player,
new CitizensInventoryAnvil(new Location(player.getWorld(), 0, 0, 0),

View File

@ -974,7 +974,7 @@ public class NMSImpl implements NMSBridge {
@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
try {
this.bukkitEntity = new CraftInventoryView(player,
new CitizensInventoryAnvil(new Location(player.getWorld(), 0, 0, 0),

View File

@ -981,7 +981,7 @@ public class NMSImpl implements NMSBridge {
@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
try {
this.bukkitEntity = new CraftInventoryView(player,
new CitizensInventoryAnvil(new Location(player.getWorld(), 0, 0, 0),

View File

@ -1017,7 +1017,7 @@ public class NMSImpl implements NMSBridge {
@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
try {
this.bukkitEntity = new CraftInventoryView(player,
new CitizensInventoryAnvil(new Location(player.getWorld(), 0, 0, 0),

View File

@ -1087,7 +1087,7 @@ public class NMSImpl implements NMSBridge {
@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
try {
this.bukkitEntity = new CraftInventoryView(player,
new CitizensInventoryAnvil(access.getLocation(),

View File

@ -1104,7 +1104,7 @@ public class NMSImpl implements NMSBridge {
@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
try {
this.bukkitEntity = new CraftInventoryView(player,
new CitizensInventoryAnvil(access.getLocation(),

View File

@ -1134,7 +1134,7 @@ public class NMSImpl implements NMSBridge {
@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
this.bukkitEntity = new CraftInventoryView(this.player.getBukkitEntity(),
new CitizensInventoryAnvil(this.containerAccess.getLocation(), this.repairInventory,
this.resultInventory, this, anvil),

View File

@ -1140,7 +1140,7 @@ public class NMSImpl implements NMSBridge {
@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
this.bukkitEntity = new CraftInventoryView(this.player.getBukkitEntity(),
new CitizensInventoryAnvil(this.access.getLocation(), this.inputSlots, this.resultSlots,
this, anvil),

View File

@ -1149,7 +1149,7 @@ public class NMSImpl implements NMSBridge {
@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
this.bukkitEntity = new CraftInventoryView(this.player.getBukkitEntity(),
new CitizensInventoryAnvil(this.access.getLocation(), this.inputSlots, this.resultSlots,
this, anvil),

View File

@ -857,7 +857,7 @@ public class NMSImpl implements NMSBridge {
@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
try {
this.bukkitEntity = new CraftInventoryView(player,
new CitizensInventoryAnvil(new Location(player.getWorld(), 0, 0, 0),