mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 18:57:32 +00:00
Update ScriptForgeEventHandler.java
This commit is contained in:
1 parent
19b01e2099
commit
9ed588728b
1 file changed
+4
@@ -36,6 +36,10 @@ public class ScriptForgeEventHandler {
|
||||
@SubscribeEvent
|
||||
public void forgeEntity(Event event) {
|
||||
if (CustomNpcs.getServer() != null && ScriptController.Instance.forgeScripts.isEnabled()) {
|
||||
if(FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT){
|
||||
return;
|
||||
}
|
||||
|
||||
if (event instanceof TickEvent && !(((TickEvent) event).side == Side.SERVER && ((TickEvent) event).phase == TickEvent.Phase.START)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user