Skip to content

Commit

Permalink
fix: Removed debug log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
WinDanesz committed Apr 5, 2024
1 parent d373192 commit 26ef959
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static void setRitual(ItemStack stack, Ritual ritual) {
public ActionResult<ItemStack> 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<Ingredient> pattern = ritual.getRitualProperties().pattern;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// }

Expand Down

0 comments on commit 26ef959

Please sign in to comment.