Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-09-08 20:43:04 +02:00
Add barrel as a valid single chest block
Dieser Commit ist enthalten in:
Ursprung
9e6402c279
Commit
07f36affb9
@ -37,10 +37,10 @@ public class SingleChestInventoryTranslator extends ChestInventoryTranslator {
|
|||||||
public SingleChestInventoryTranslator(int size) {
|
public SingleChestInventoryTranslator(int size) {
|
||||||
super(size, 27);
|
super(size, 27);
|
||||||
this.holder = new BlockInventoryHolder("minecraft:chest[facing=north,type=single,waterlogged=false]", ContainerType.CONTAINER,
|
this.holder = new BlockInventoryHolder("minecraft:chest[facing=north,type=single,waterlogged=false]", ContainerType.CONTAINER,
|
||||||
"minecraft:ender_chest", "minecraft:trapped_chest") {
|
"minecraft:ender_chest", "minecraft:trapped_chest", "minecraft:barrel") {
|
||||||
@Override
|
@Override
|
||||||
protected boolean isValidBlock(String[] javaBlockString) {
|
protected boolean isValidBlock(String[] javaBlockString) {
|
||||||
if (javaBlockString[0].equals("minecraft:ender_chest")) {
|
if (javaBlockString[0].equals("minecraft:ender_chest") || javaBlockString[0].equals("minecraft:barrel")) {
|
||||||
// Can't have double ender chests
|
// Can't have double ender chests
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren