mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 10:35:38 +01:00
Add Merchant slot delegate
This commit is contained in:
parent
b2de47d581
commit
498540e082
@ -15,6 +15,7 @@ import net.minecraft.server.ContainerGrindstone;
|
|||||||
import net.minecraft.server.ContainerHopper;
|
import net.minecraft.server.ContainerHopper;
|
||||||
import net.minecraft.server.ContainerLectern;
|
import net.minecraft.server.ContainerLectern;
|
||||||
import net.minecraft.server.ContainerLoom;
|
import net.minecraft.server.ContainerLoom;
|
||||||
|
import net.minecraft.server.ContainerMerchant;
|
||||||
import net.minecraft.server.ContainerProperties;
|
import net.minecraft.server.ContainerProperties;
|
||||||
import net.minecraft.server.ContainerShulkerBox;
|
import net.minecraft.server.ContainerShulkerBox;
|
||||||
import net.minecraft.server.ContainerSmoker;
|
import net.minecraft.server.ContainerSmoker;
|
||||||
@ -247,6 +248,9 @@ public class CraftContainer extends Container {
|
|||||||
case STONECUTTER:
|
case STONECUTTER:
|
||||||
delegate = new ContainerStonecutter(windowId, bottom);
|
delegate = new ContainerStonecutter(windowId, bottom);
|
||||||
break;
|
break;
|
||||||
|
case MERCHANT:
|
||||||
|
delegate = new ContainerMerchant(windowId, bottom);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (delegate != null) {
|
if (delegate != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user