Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Fixed #266
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Jan 9, 2016
1 parent 789ef63 commit f238edf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/cn/nukkit/Player.java
Expand Up @@ -2930,7 +2930,6 @@ public void handleDataPacket(DataPacket packet) {
break;
}

System.out.println("*");
Tile t = this.level.getTile(pos);
if (t instanceof Sign) {
CompoundTag nbt;
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/cn/nukkit/inventory/BaseInventory.java
Expand Up @@ -64,7 +64,9 @@ public BaseInventory(InventoryHolder holder, InventoryType type, Map<Integer, It

this.name = this.type.getDefaultTitle();

this.setContents(items);
if (!(this instanceof DoubleChestInventory)) {
this.setContents(items);
}
}

@Override
Expand Down

0 comments on commit f238edf

Please sign in to comment.