
Wireless Charger is Extremely Wireless
ZeekDaGeek opened this issue ยท 4 comments
Issue Description:
Once you get a certain distance away from a wireless charger it seems to charge you due to a integer overflow in getDistSq.
This is a real issue when you're on a skyblock server that spreads each player out by a specific amount for their starter islands.
What you expected to happen:
Not have everyone on the server stealing my power when they get far enough away from me.
Steps to reproduce:
- Teleport to 0, 64, 0
- Place down a wireless charger with a Energy Cell of some kind with a fixed amount of power, that way you can measure the drop in charge later.
- Teleport to 46340, 64, 0
- Walk East 1 block and enjoy your EXTREME WIRELESS CHARGER! Any distance above 46340 in the X or Y or below -46340 will work. (The way to figure out this number is with sqrt(Integer.MAX_VALUE) = 46340)
Affected Versions (Do not use "latest"):
- EnderIO: 2.3.0.424_beta
- EnderCore: 0.2.0.32
- Minecraft: 1.7.10
- Forge: 10.13.4.1614-1.7.10
Related: #2498