@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/inventory/ContainerCartography.java
|
||||
+++ b/net/minecraft/world/inventory/ContainerCartography.java
|
||||
@@ -12,8 +12,30 @@
|
||||
@@ -14,8 +14,30 @@
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
import net.minecraft.world.level.saveddata.maps.WorldMap;
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
public static final int MAP_SLOT = 0;
|
||||
public static final int ADDITIONAL_SLOT = 1;
|
||||
public static final int RESULT_SLOT = 2;
|
||||
@@ -38,6 +60,13 @@
|
||||
@@ -40,6 +62,13 @@
|
||||
ContainerCartography.this.slotsChanged(this);
|
||||
super.setChanged();
|
||||
}
|
||||
@@ -45,7 +45,7 @@
|
||||
};
|
||||
this.resultContainer = new InventoryCraftResult() {
|
||||
@Override
|
||||
@@ -45,6 +74,13 @@
|
||||
@@ -47,15 +76,22 @@
|
||||
ContainerCartography.this.slotsChanged(this);
|
||||
super.setChanged();
|
||||
}
|
||||
@@ -58,8 +58,19 @@
|
||||
+ // CraftBukkit end
|
||||
};
|
||||
this.access = containeraccess;
|
||||
this.addSlot(new Slot(this.container, 0, 15, 15) {
|
||||
@@ -95,10 +131,12 @@
|
||||
- this.addSlot(new Slot(this, this.container, 0, 15, 15) {
|
||||
+ this.addSlot(new Slot(this.container, 0, 15, 15) { // CraftBukkit - decompile error
|
||||
@Override
|
||||
public boolean mayPlace(ItemStack itemstack) {
|
||||
return itemstack.is(Items.FILLED_MAP);
|
||||
}
|
||||
});
|
||||
- this.addSlot(new Slot(this, this.container, 1, 15, 52) {
|
||||
+ this.addSlot(new Slot(this.container, 1, 15, 52) { // CraftBukkit - decompile error
|
||||
@Override
|
||||
public boolean mayPlace(ItemStack itemstack) {
|
||||
return itemstack.is(Items.PAPER) || itemstack.is(Items.MAP) || itemstack.is(Items.GLASS_PANE);
|
||||
@@ -97,10 +133,12 @@
|
||||
this.addSlot(new Slot(playerinventory, j, 8 + j * 18, 142));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user