Revert "Added several more functions to pre-existing classes:"

This reverts commit e9a8f8cebc.
This commit is contained in:
KAMKEEL committed 2022-11-06 00:10:04 -04:00
1 parent 0d3436c71b
commit 6ae465c5d0
51 files changed
+226 -1024

No files matched your search

+1 -1
View File
@@ -518,7 +518,7 @@ public class EventHooks {
public static boolean onCNPCNaturalSpawn(INaturalSpawn naturalSpawn, BlockPos blockPos, boolean animalSpawnPassed, boolean monsterSpawnPassed, boolean liquidSpawnPassed, boolean airSpawnPassed) {
ForgeDataScript handler = ScriptController.Instance.forgeScripts;
if (handler.isEnabled()) {
IPos attemptPosition = NpcAPI.Instance().getIPos(blockPos);
IPos attemptPosition = new ScriptBlockPos(blockPos);
CustomNPCsEvent.CNPCNaturalSpawnEvent event = new CustomNPCsEvent.CNPCNaturalSpawnEvent(naturalSpawn, attemptPosition, animalSpawnPassed, monsterSpawnPassed, liquidSpawnPassed, airSpawnPassed);
handler.callScript("onCNPCNaturalSpawn", event);
return NpcAPI.EVENT_BUS.post(event);