Skip to content

Commit

Permalink
Fix: no object required
Browse files Browse the repository at this point in the history
  • Loading branch information
danorris709 committed Jul 8, 2021
1 parent ccc9340 commit b879e3a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ public static void setPlatformFactory(PlatformGuiFactory platformFactory) {
*
* Gets a new instance of the platform's displayable builder
*
* @param unused Used for automatic type detection (So you don't have to do <ItemStack>displayableBuilder [ugly])
* @return The new displayable builder
* @param <T> The type for the displayable
*/
@SuppressWarnings("unchecked")
public static <T> Displayable.Builder<T> displayableBuilder(T t) {
public static <T> Displayable.Builder<T> displayableBuilder(Class<T> unused) {
if (platformFactory == null) {
throw new RuntimeException("Platform's factory hasn't been set yet!");
}
Expand Down

0 comments on commit b879e3a

Please sign in to comment.