Compare commits

...
2 Commits
Author SHA1 Message Date
glowredman ed947e4b92 Fix modName (#38)
This mistake occured during the big buildscript overhaul (fbaaed088b)
2022-12-27 00:01:33 +01:00
miozune 48bb35140c Prevent crash with broken server state (#37) 2022-12-12 22:24:13 +01:00
2 changed files with 4 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
modName = AlchemicalWizardry
modName = Blood Magic: Alchemical Wizardry
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
modId = AWWayofTime
@@ -96,11 +96,12 @@ public class SoulNetworkHandler {
}
public static int syphonFromNetwork(String ownerName, int damageToBeDone) {
if (MinecraftServer.getServer() == null) {
MinecraftServer mcServer = MinecraftServer.getServer();
if (mcServer == null || mcServer.worldServers.length == 0) {
return 0;
}
World world = MinecraftServer.getServer().worldServers[0];
World world = mcServer.worldServers[0];
LifeEssenceNetwork data = (LifeEssenceNetwork) world.loadItemData(LifeEssenceNetwork.class, ownerName);
if (data == null) {