Skip to content

Commit

Permalink
Fix anvil inventories in old minecraft versions
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 6, 2024
1 parent fcd2908 commit 3563413
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Expand Up @@ -921,7 +921,7 @@ public void e() {

@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),
Expand Down
Expand Up @@ -974,7 +974,7 @@ public void e() {

@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),
Expand Down
Expand Up @@ -981,7 +981,7 @@ public void e() {

@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),
Expand Down
Expand Up @@ -1017,7 +1017,7 @@ public void d() {

@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),
Expand Down
Expand Up @@ -1087,7 +1087,7 @@ public void e() {

@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
try {
this.bukkitEntity = new CraftInventoryView(player,
new CitizensInventoryAnvil(access.getLocation(),
Expand Down
Expand Up @@ -1104,7 +1104,7 @@ public void e() {

@Override
public CraftInventoryView getBukkitView() {
if (this.bukkitEntity != null) {
if (this.bukkitEntity == null) {
try {
this.bukkitEntity = new CraftInventoryView(player,
new CitizensInventoryAnvil(access.getLocation(),
Expand Down
Expand Up @@ -1134,7 +1134,7 @@ public void e() {

@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),
Expand Down
Expand Up @@ -1140,7 +1140,7 @@ public void createResult() {

@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),
Expand Down
Expand Up @@ -1149,7 +1149,7 @@ public void createResult() {

@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),
Expand Down
Expand Up @@ -857,7 +857,7 @@ public void e() {

@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),
Expand Down

0 comments on commit 3563413

Please sign in to comment.