File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424import Oneblock .gui .GUI ;
2525import dev .lone .itemsadder .api .CustomBlock ;
2626import io .th0rgal .oraxen .api .OraxenItems ;
27- import net .momirealms .craftengine .bukkit .api .CraftEngineBlocks ;
2827import net .momirealms .craftengine .core .util .Key ;
2928
3029public class ConfigManager {
@@ -186,16 +185,15 @@ else if (xmt == XMaterial.CHEST)
186185 }
187186
188187 private Object getCustomBlock (String text ) {
189- return switch (plugin .placetype ) {
190- case ItemsAdder -> CustomBlock .getInstance (text );
191- case Oraxen -> OraxenItems .exists (text ) ? text : null ;
192- case Nexo -> NexoBlocks .isCustomBlock (text ) ? text : null ;
193- case CraftEngine -> {
188+ switch (plugin .placetype ) {
189+ case ItemsAdder : return CustomBlock .getInstance (text );
190+ case Oraxen : return OraxenItems .exists (text ) ? text : null ;
191+ case Nexo : return NexoBlocks .isCustomBlock (text ) ? text : null ;
192+ case CraftEngine :
194193 String [] pcid = text .split (":" , 2 );
195- yield pcid .length == 2 ? Key .of (pcid ) : null ;
196- }
197- default -> null ;
198- };
194+ return pcid .length == 2 ? Key .of (pcid ) : null ;
195+ default : return null ;
196+ }
199197 }
200198
201199 public void SetupProgressBar () {
You can’t perform that action at this time.
0 commit comments