Fixed a null exception

This commit is contained in:
Tracker-Friendly 2025-03-02 18:21:36 +00:00
parent 20ecfb3542
commit 670f41283a
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public class NetworkedBlock extends Block {
var presence = new Node(new Vec3i(pos.getX(), pos.getY(), pos.getZ()));
node.put(pos, presence);
var found = MatchMaker.matchMaker.Search(presence, MatchMaker.networkDiscovery);
if (!found.isEmpty()) {
if (found != null && !found.isEmpty()) {
Network previous = null;
for (var basePresence : found) {
if (basePresence instanceof Network foundNetwork) {