Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 145
    • Issues 145
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #715

Closed
Open
Created Feb 19, 2022 by brabrabruh@anonymous2023

The % operator is not working in some server

Summary

The % operator is not working in one of my server. In the example i tried to output these operand as message <caster.var.SpiderCB> is int and 2 is also int both operand are integer

mythicmobs premium dev 4037 paper 1.18.1 203

Steps to reproduce

  1. use any type of skill that require % operator
  2. thats it, all of the skill with such operator cannot be used, will produce error in my server
crossbow_change_mode:
  Conditions:
  - crouching true
  Skills:
  - variableadd{var=caster.SpiderCB;amount=1} @self
  - variableMath{var=caster.SpiderCB;equation="<caster.var.SpiderCB>%2"} @self #<-------------
crossbow_int:
  Conditions:
  - variableisset caster.SpiderCB false
  Skills:
  - setvariable{var=caster.SpiderCB;value=0;}

Current behavior

error log https://mclo.gs/rleARzu

show error when this skill is triggered

Intended correct behavior

it should able to use without any error

Server log file

*this log is not the same log as the error one because i have tried multiple server and mythicmobs versions, but is still the same it just show they are in the same server https://paste.gg/p/anonymous/1b9724acf64d4eccae3d27cb5c8d3704

Debug log snippet

this is already a debug 5 message https://mclo.gs/rleARzu

Proposed fixes

idk what is causing this, same skill , files in different server, some server works, some server not working

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking