Fixed a null exception
This commit is contained in:
parent
20ecfb3542
commit
670f41283a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue