-
Notifications
You must be signed in to change notification settings - Fork 42
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] resummoning ender dragon doesnt work #327
Comments
I also have this issue though my mod list is much smaller. And of course, Better End as well as BClibrary |
Confirming this issue as well on Minecraft 1.20.4
|
So by adding some logger lines, I've identified the issue--it's looking for the crystals in the wrong locations: BetterEnd/src/main/java/org/betterx/betterend/mixin/common/EndDragonFightMixin.java Lines 71 to 80 in 35c56c5
Original message with wrong conclusions
(that is, it doesn't seem to be actually changing directions). That would suggest an issue with update: this is wrong--it's only checking one direction before returning (L94). The reason it shows up four times is that it runs the check any time I place down a crystal.
|
Yep, simply hard-coding: List<EndCrystal> crystals = Lists.newArrayList();
Vec3[] coords = new Vec3[]{
new Vec3(0, 0, 4),
new Vec3(0, 0, -4),
new Vec3(4, 0, 0),
new Vec3(-4, 0, 0)
};
for (Vec3 coord : coords) {
LOGGER.info("Checking from {} to {}",
coord,
coord.relative(Direction.UP, 255)
);
List<EndCrystal> crystalList = level.getEntitiesOfClass(
EndCrystal.class,
new AABB(
coord,
coord.relative(Direction.UP, 255)
)
);
int count = crystalList.size();
LOGGER.info("Found {} crystals", count);
for (int n = 0; n < count; n++) {
EndCrystal crystal = crystalList.get(n);
if (!level.getBlockState(crystal.blockPosition().below()).is(Blocks.BEDROCK)) {
crystalList.remove(n);
count--;
n--;
}
} fixed the issue:
and respawned the dragon. I'll open a PR for the fix in the coming days, time permitting, unless @quiqueck or another maintainer has a better fix in mind. |
What happened?
A bug happened!
BetterEnd
4.30.1
BCLib
3.30.1
Fabric API
0.92.0
Fabric Loader
0.15.3
Minecraft
1.20.4
Relevant log output
No response
Other Mods
The text was updated successfully, but these errors were encountered: