Fix logic error for item spawn location.
This commit is contained in:
parent
1bcda91d7f
commit
2cf6eda7a6
@ -158,9 +158,6 @@ public final class Itemcase {
|
|||||||
|
|
||||||
// Set owner.
|
// Set owner.
|
||||||
this.owner = owner;
|
this.owner = owner;
|
||||||
|
|
||||||
// Spawn display item for the first time.
|
|
||||||
this.spawnItem();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -483,7 +480,7 @@ public final class Itemcase {
|
|||||||
|
|
||||||
// If block is a slab.
|
// If block is a slab.
|
||||||
if(type == Material.STEP ||
|
if(type == Material.STEP ||
|
||||||
type != Material.STONE_SLAB2 ||
|
type == Material.STONE_SLAB2 ||
|
||||||
type == Material.WOOD_STEP ||
|
type == Material.WOOD_STEP ||
|
||||||
type == Material.PURPUR_SLAB) {
|
type == Material.PURPUR_SLAB) {
|
||||||
|
|
||||||
|
@ -208,6 +208,9 @@ public final class WorldFile extends ConfigurationFile {
|
|||||||
// Create itemcase object.
|
// Create itemcase object.
|
||||||
Itemcase itemcase = new Itemcase(type, itemstack, location, owner);
|
Itemcase itemcase = new Itemcase(type, itemstack, location, owner);
|
||||||
|
|
||||||
|
// Spawn item.
|
||||||
|
itemcase.spawnItem();
|
||||||
|
|
||||||
// If itemcase is a shop.
|
// If itemcase is a shop.
|
||||||
if(type != Type.SHOWCASE) {
|
if(type != Type.SHOWCASE) {
|
||||||
|
|
||||||
|
@ -144,6 +144,9 @@ public final class ItemcaseManager {
|
|||||||
Itemcase itemcase = new Itemcase(Itemcase.Type.SHOWCASE, itemStack,
|
Itemcase itemcase = new Itemcase(Itemcase.Type.SHOWCASE, itemStack,
|
||||||
location, owner);
|
location, owner);
|
||||||
|
|
||||||
|
// Spawn item.
|
||||||
|
itemcase.spawnItem();
|
||||||
|
|
||||||
// Add itemcase to the list.
|
// Add itemcase to the list.
|
||||||
this.itemcases.add(itemcase);
|
this.itemcases.add(itemcase);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user