mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 02:25:57 +01:00
Fix anvil inventories in old minecraft versions
This commit is contained in:
parent
fcd2908723
commit
3563413c06
@ -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),
|
||||
|
@ -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),
|
||||
|
@ -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),
|
||||
|
@ -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),
|
||||
|
@ -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(),
|
||||
|
@ -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(),
|
||||
|
@ -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),
|
||||
|
@ -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),
|
||||
|
@ -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),
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user