aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorJuuxel <kasperi.kauppi@gmail.com>2020-06-17 22:35:41 +0300
committerJuuxel <kasperi.kauppi@gmail.com>2020-06-17 22:35:41 +0300
commit5074fa1f50c2ec63ff8d75203c5813598d5db24c (patch)
tree0d426f030415080585bf66fa1ee0496e63570a68 /src/main/java
parent50e200a10ca324b4d9ce0b823b85480cd4a55ab9 (diff)
downloadLibGui-5074fa1f50c2ec63ff8d75203c5813598d5db24c.tar.gz
LibGui-5074fa1f50c2ec63ff8d75203c5813598d5db24c.tar.bz2
LibGui-5074fa1f50c2ec63ff8d75203c5813598d5db24c.zip
Make SyncedGuiDescription constructors take the screen handler type
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java b/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java
index 5f2bef0..8a67c52 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java
@@ -37,17 +37,17 @@ public class SyncedGuiDescription extends ScreenHandler implements GuiDescriptio
protected int darkTitleColor = WLabel.DEFAULT_DARKMODE_TEXT_COLOR;
protected WWidget focus;
-
- public SyncedGuiDescription(int syncId, PlayerInventory playerInventory) {
- super(null, syncId);
+
+ public SyncedGuiDescription(ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory) {
+ super(type, syncId);
this.blockInventory = null;
this.playerInventory = playerInventory;
this.world = playerInventory.player.world;
this.propertyDelegate = null;//new ArrayPropertyDelegate(1);
}
- public SyncedGuiDescription(int syncId, PlayerInventory playerInventory, Inventory blockInventory, PropertyDelegate propertyDelegate) {
- super(null, syncId);
+ public SyncedGuiDescription(ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, Inventory blockInventory, PropertyDelegate propertyDelegate) {
+ super(type, syncId);
this.blockInventory = blockInventory;
this.playerInventory = playerInventory;
this.world = playerInventory.player.world;