From 344c9eb3702c6beeb67354927a3486250e93db97 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Tue, 8 Apr 2014 23:26:04 -0500 Subject: [PATCH] Allow Subclasses of PlayerInventory. --- core/sync/GuiBridge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sync/GuiBridge.java b/core/sync/GuiBridge.java index cde0902f0..235723138 100644 --- a/core/sync/GuiBridge.java +++ b/core/sync/GuiBridge.java @@ -251,7 +251,7 @@ public enum GuiBridge implements IGuiHandler Class[] types = con.getParameterTypes(); if ( types.length == 2 ) { - if ( types[0] == inventory.getClass() && types[1].isAssignableFrom( tE.getClass() ) ) + if ( types[0].isAssignableFrom( inventory.getClass() ) && types[1].isAssignableFrom( tE.getClass() ) ) return con; } }