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

Updating to 1.15.2 and build simplification #518

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

paulolc
Copy link

@paulolc paulolc commented Apr 29, 2020

Compilation now supports 1.15.2 (should resolve #517)
Build on top of @pawel8273 changes for 1.14.x.

@paulolc paulolc changed the title Updating to 1.15.2 Updating to 1.15.2 and build simplification May 3, 2020
@paulolc
Copy link
Author

paulolc commented May 3, 2020

  • Build simplified. Now "mvn install" builds everything, including spigot if necessary.
  • Spigot BuiltTools is only run if spigot jar is not detected in local maven repository
  • Restructured pom structure with a parent pom and 2 modules "spigot" and "jsonapi"
  • Removed build scripts now obsolete
  • Removed all warning from build (except the Vault one, which is a warning to an external pom)
  • Version is no longer taken from maven parameters. It's now fixed on pom.xml
  • Dropped support for building to older versions of MC. Now only builds for the latest as of now: 1.15.2

Comment on lines 83 to 84
//networkManagers = (List<Object>) FuzzyReflection.fromObject(serverConnection, true).
// invokeMethod(null, "getNetworkManagers", List.class, serverConnection);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this commented out?

my recollection was that this needs to be captured so that we don't interfere with the processing of packets for normal gameplay.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! I forgot that I had commented that out. I need to check it. Thanks!

It was raising a runtime exception due to not recognizing the getNetworkManagers method signature (maybe something to do with the 1.15.2 nms) and the method would not go until the end and jsonapi would break somewhere else. I commented it out just to see how far it went and it would run ok. Meanwhile I went full throttle on the build simplification and completely forgot about this. I'll have to recheck it.

Removed dead code
Replaced debug preprocessing flag with configurable option
Turned the forward ports checking verification on startup is now configurable (disabled by default).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add compatibility for 1.15.2
3 participants