Added some test System.out outputs to test the ritual (local compilation was successful).

This commit is contained in:
WayofTime 2016-09-16 14:33:44 -04:00
parent e541ed67e9
commit 21607213d4

View file

@ -203,13 +203,17 @@ public class TileMasterRitualStone extends TileTicking implements IMasterRitualS
{
if (!world.isRemote && getCurrentRitual() != null && RitualRegistry.ritualEnabled(getCurrentRitual()))
{
System.out.println("This ritual is enabled and there is a ritual.");
if (RitualHelper.checkValidRitual(getWorld(), getPos(), RitualRegistry.getIdForRitual(currentRitual), getDirection()))
{
System.out.println("This ritual is valid.");
RitualEvent.RitualRunEvent event = new RitualEvent.RitualRunEvent(this, getOwner(), getCurrentRitual());
if (MinecraftForge.EVENT_BUS.post(event) || event.getResult() == Event.Result.DENY)
return;
System.out.println("This ritual is going to run!");
getCurrentRitual().performRitual(this);
} else
{