Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Is level calculation #56

Closed
x1p opened this issue May 27, 2019 · 3 comments
Closed

[Bug] Is level calculation #56

x1p opened this issue May 27, 2019 · 3 comments
Assignees
Labels

Comments

@x1p
Copy link

x1p commented May 27, 2019

Description

Describe the bug

The level calculation got mixed up

Steps to reproduce the behavior

  1. make 3 blueprints
  2. stop server
  3. delete worlds
  4. delete databases
  5. start server
  6. start island by choosing 1 of the blueprints
  7. check to see that Is level = 0
  8. is reset and choose different island
  9. check is level. Result is e.g. -22
  10. is reset and choose different island
  11. check is level. Result is e.g. 99
  12. is reset and choose the same island as step 6
  13. check is level. Result is e.g. -57
  14. is reset and choose the same island as step 8
  15. check is level. Result is e.g. 198

Screenshots and videos

Expected behavior

I am trying to understand the logic behind this.

Environment

Server

  • OS: Linux
  • Java version: 1.8.0_212

Plugins

BentoBox, CMI, LuckPerms, Vault*, WorldBorder, WorldEdit, WorldEditCUI, WorldGuard

BentoBox setup

BentoBox and Addons
Running PAPER 1.13.2.
BentoBox version: 1.5.0-SNAPSHOT-b1097
Loaded Game Worlds:
bskyblock_world (BSkyBlock): Overworld, Nether, End
Loaded Addons:
Biomes 1.5.0.0-SNAPSHOT-b79
BSkyBlock 1.5.0
Challenges 0.7.5-SNAPSHOT-b227
Level 1.5.0-SNAPSHOT
Limits 0.2.0-SNAPSHOT
MagicCobblestoneGenerator 1.5.0.1
Configuration
  • Database: JSON

Additional context

@x1p
Copy link
Author

x1p commented May 28, 2019

I think I understand the mechanism behind it.
If a new island is made, the is level is set to 0. (Not quite, but almost).

If a reset is done, the old island is purged, the new island is set.
Is level is not resetted. New (smaller/bigger) island is placed.
The level calculation is done, it "sees" extra/less blocks.

Even if the same island is chosen after the reset, the island level is raised with about 99 points.

@Poslovitch
Copy link
Member

For some reason, I can't transfer this issue to the Level repository. @tastybento Could you give it a try?

@tastybento
Copy link
Member

@Poslovitch Me neither. It's not an option for some reason. Weird. Anyway, this is fixed in the commit.
@x1p Thanks for the report!

@Poslovitch Poslovitch transferred this issue from BentoBoxWorld/BentoBox May 31, 2019
@Poslovitch Poslovitch added the bug label May 31, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants