File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/net/onelitefeather/antiredstoneclockremastered Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1919import org .bukkit .plugin .java .JavaPlugin ;
2020
2121import java .util .Arrays ;
22+ import java .util .Optional ;
2223
2324public final class AntiRedstoneClockRemastered extends JavaPlugin {
2425
@@ -47,7 +48,7 @@ public void onLoad() {
4748 public void onEnable () {
4849 injector .getInstance (TranslationModule .class );
4950 injector .getInstance (CheckTPS .class ).startCheck ();
50- injector .getInstance (PlotsquaredSupport .class ). init ( );
51+ Optional . ofNullable ( injector .getInstance (PlotsquaredSupport .class )). ifPresent ( PlotsquaredSupport :: init );
5152 donationInformation ();
5253 injector .getInstance (UpdateService .class ).schedule ();
5354 injector .getInstance (UpdateService .class ).run ();
You can’t perform that action at this time.
0 commit comments