File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
java/com/strangeone101/bendinggui/menus Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 88import java .util .Map ;
99import java .util .function .Function ;
1010
11+ import com .google .common .base .Strings ;
1112import com .projectkorra .projectkorra .event .PlayerBindChangeEvent ;
1213import com .strangeone101 .bendinggui .LangBuilder ;
1314import com .strangeone101 .bendinggui .api .ElementOrder ;
@@ -312,7 +313,7 @@ else if (mode == Mode.INFO && move != null)
312313 }
313314 };
314315 item .setDescriptions (Arrays .asList ((ChatColor .GRAY + desc ).split ("\n " )));
315- item .setModelData (ConfigStandard .getInstance ().getModelDataBase () + Util .getMagicNumber (CoreAbility .getAbility (move ).getElement ()) + 256 );
316+ item .setModelData (ConfigStandard .getInstance ().getModelDataBase () + ( Strings . isNullOrEmpty ( move ) ? 1 : Util .getMagicNumber (CoreAbility .getAbility (move ).getElement () )) + 256 );
316317 if (index == this .slotIndex )
317318 {
318319 item .setEnchanted (true );
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ main: com.strangeone101.bendinggui.BendingGUI
33version : ' ${project.version}'
44depend : [ProjectKorra]
55softdepend : [JedCore, Spirits]
6- api-version : 1.16
6+ api-version : 1.20.5
77prefix : BendingGUI
88commands :
99 bendinggui :
You can’t perform that action at this time.
0 commit comments