From 0e374a95a59b09b624504d900b9e88caf675c8d7 Mon Sep 17 00:00:00 2001 From: Yang Xizhi <60341015+GlodBlock@users.noreply.github.com> Date: Wed, 4 May 2022 02:40:24 +0800 Subject: bandaid fix for the enet npe (#1041) honestly i don't understand how bot's code works, but this initize fix the npe spamming and the shuttler still works https://discord.com/channels/181078474394566657/658620984714067968/968906808670445568 --- src/main/java/gregtech/api/graphs/paths/NodePath.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/gregtech/api/graphs/paths') diff --git a/src/main/java/gregtech/api/graphs/paths/NodePath.java b/src/main/java/gregtech/api/graphs/paths/NodePath.java index efdcd1aecb..3a4bbed8c6 100644 --- a/src/main/java/gregtech/api/graphs/paths/NodePath.java +++ b/src/main/java/gregtech/api/graphs/paths/NodePath.java @@ -7,7 +7,7 @@ import gregtech.api.metatileentity.MetaPipeEntity; //to contain all info about the path between nodes public class NodePath { protected MetaPipeEntity[] mPipes; - public Lock lock; + public Lock lock = new Lock(); public NodePath(MetaPipeEntity[] aCables) { this.mPipes = aCables; -- cgit