Giter Club home page Giter Club logo

Comments (3)

RoboMWM avatar RoboMWM commented on August 24, 2024

they are dropped on the region post and die again from fall damage.

This shouldn't be happening, since they should have fall damage immunity at this time. Something is resetting this attribute (double damage)?

from populationdensity.

JethroHotep avatar JethroHotep commented on August 24, 2024

And the beer gets lumpy. Found the problem, and it is not in the plugin... So, respawn Y is set like this:

homeRegionCenter.setY(PopulationDensity.ManagedWorld
					.getHighestBlockYAt(homeRegionCenter) + 2);

That is a nice simple solution for setting a Y for the top of the region post. Unfortunately, Y is coming back as the highest block that existed before a WorldEdit cut. So, even though there is nothing but air over the post, at one time there was a huge statue there that I "cut" with WorldEdit. For some reason, Spigot is returning the top of that statue as the Highest Y. Since the statue is actually gone, ahhhhhhh.... splat. I manually built a column above the post and broke it, and now Spigot knows there is nothing but air there. Happy days, no more screaming falling death loops. It was all a WorldEdit artifact.

Thanks for responding so quickly.

from populationdensity.

RoboMWM avatar RoboMWM commented on August 24, 2024

Ah ok. I kinda recalled that respawns shouldn't drop players in, but wasn't sure.

getHighestBlock and getHighestBlockYAt use light afaik to determine what the highest block is. This is why stuff like glass aren't reported as the highest block. So in this case, WorldEdit didn't update the lighting (though I'm going to assume that this is because of FAWE/AWE since they skip the bukkit API and place blocks directly via NMS, thus not triggering relighting).

from populationdensity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.