Now causes nausea when passive operations (such as rituals or the Lava Crystal).

Added the Lava crystal model.
This commit is contained in:
WayofTime 2015-12-31 20:47:01 -05:00
parent 6fb409f20f
commit 65d75313cb
10 changed files with 54 additions and 11 deletions

View file

@ -115,7 +115,6 @@ public class NetworkHelper
*/
public static boolean syphonFromContainer(ItemStack stack, int toSyphon) //TODO: Change to a String, int?
{
System.out.println("Test");
stack = NBTHelper.checkNBT(stack);
String ownerName = stack.getTagCompound().getString(Constants.NBT.OWNER_UUID);
@ -129,6 +128,18 @@ public class NetworkHelper
return !(MinecraftForge.EVENT_BUS.post(event) || event.getResult() == Event.Result.DENY) && network.syphon(event.syphon) >= toSyphon;
}
public static boolean canSyphonFromContainer(ItemStack stack, int toSyphon)
{
stack = NBTHelper.checkNBT(stack);
String ownerName = stack.getTagCompound().getString(Constants.NBT.OWNER_UUID);
if (Strings.isNullOrEmpty(ownerName))
return false;
SoulNetwork network = getSoulNetwork(ownerName);
return network.getCurrentEssence() >= toSyphon;
}
// Set
/**