mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-17 10:55:09 +00:00
Add package info and fix nullability
Everything defaults to nonnull now, and is labeled where null is likely
This commit is contained in:
1 parent
c96d1f4f05
commit
f1037ce21a
61 files changed
+386
-256
No files matched your search
@@ -47,6 +47,7 @@ class ExampleSync {
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
public void playerJoinedWorld(TickEvent.ClientTickEvent event) {
|
||||
ClientPlayerEntity player = Minecraft.getInstance().player;
|
||||
assert player != null;
|
||||
if (needsRestart) {
|
||||
player.sendMessage(new StringTextComponent("Configs synced with server. Configs require a restart"), Util.DUMMY_UUID);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user