diff --git a/src/main/java/com/windanesz/ancientspellcraft/item/ItemRitualBook.java b/src/main/java/com/windanesz/ancientspellcraft/item/ItemRitualBook.java index ba009d83..ae99c187 100644 --- a/src/main/java/com/windanesz/ancientspellcraft/item/ItemRitualBook.java +++ b/src/main/java/com/windanesz/ancientspellcraft/item/ItemRitualBook.java @@ -85,7 +85,7 @@ public static void setRitual(ItemStack stack, Ritual ritual) { public ActionResult onItemRightClick(World world, EntityPlayer player, EnumHand hand) { ItemStack stack = player.getHeldItem(hand); Ritual ritual = getRitual(stack); - if (ritual != Rituals.none && !player.isSneaking() && player.isCreative()) { + if (ritual != Rituals.none && !player.isSneaking() && !player.isCreative()) { player.openGui(AncientSpellcraft.instance, GuiHandlerAS.RITUAL_BOOK, world, 0, 0, 0); } else if (!world.isRemote && ritual != Rituals.none) { NonNullList pattern = ritual.getRitualProperties().pattern; diff --git a/src/main/java/com/windanesz/ancientspellcraft/spell/Armageddon.java b/src/main/java/com/windanesz/ancientspellcraft/spell/Armageddon.java index d701c27e..39ac84cb 100644 --- a/src/main/java/com/windanesz/ancientspellcraft/spell/Armageddon.java +++ b/src/main/java/com/windanesz/ancientspellcraft/spell/Armageddon.java @@ -48,7 +48,6 @@ public boolean cast(World world, EntityPlayer caster, EnumHand hand, int ticksIn for (int i = 0; i < 1 && !validSpawnLocations.isEmpty(); i++) { BlockPos currPos = validSpawnLocations.remove(world.rand.nextInt(validSpawnLocations.size())); - System.out.println("distance: " + currPos.distanceSq(caster.getPosition())); EntityMeteor meteor = new EntityMeteor(world, currPos.getX() + 0.5, currPos.getY(), currPos.getZ() + 0.5, 0.5f, true); diff --git a/src/main/java/com/windanesz/ancientspellcraft/spell/Experiment.java b/src/main/java/com/windanesz/ancientspellcraft/spell/Experiment.java index 075aed18..11b8230d 100644 --- a/src/main/java/com/windanesz/ancientspellcraft/spell/Experiment.java +++ b/src/main/java/com/windanesz/ancientspellcraft/spell/Experiment.java @@ -243,7 +243,7 @@ public boolean cast(World world, EntityPlayer caster, EnumHand hand, int ticksIn switch (effectType) { case FORFEIT_WEIGHT: {// tier: the more bonus points the player had, the less adverse the effects can be - System.out.println(FORFEIT_WEIGHT); + // TODO: artefact to reduce max tier by one int tier = data.synchronisedRandom.nextInt(Math.max(0, Math.round(3 - (distinctElements.size() / 3f)))); Element element = Element.values()[Math.max(1, data.synchronisedRandom.nextInt(Element.values().length))]; diff --git a/src/main/java/com/windanesz/ancientspellcraft/spell/WarpWeapon.java b/src/main/java/com/windanesz/ancientspellcraft/spell/WarpWeapon.java index a646fd84..19a1bfcb 100644 --- a/src/main/java/com/windanesz/ancientspellcraft/spell/WarpWeapon.java +++ b/src/main/java/com/windanesz/ancientspellcraft/spell/WarpWeapon.java @@ -84,7 +84,6 @@ protected boolean onEntityHit(World world, Entity target, Vec3d hit, ? 1 : (int) ((modifiers.get(SpellModifiers.POTENCY) - 1.0f) / Constants.POTENCY_INCREASE_PER_TIER + 0.5f); - System.out.println("level: " + level); stack.addEnchantment(ASEnchantments.degrade_sword, level); // }