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

Deepslate/tuff causes random blocks to generate when deepslate ores are turned off #341

Closed
3 tasks
DrParadox7 opened this issue Sep 29, 2023 · 9 comments
Closed
3 tasks
Assignees
Labels
Priority: High For serious issues

Comments

@DrParadox7
Copy link

Please check any boxes that apply to you and your issue

  • I use a translator application to post this issue.

  • This is a crash. Please upload, Pastebin, Gist or copypaste the whole crash report along with this issue.

  • This is a mod incompatibility. If I do this in vanilla Forge with only Et Futurum Requiem installed, it works normally.

Version number of Et-Futurum-Requiem (IMPORTANT)

2.5.0

Describe the issue (IMPORTANT)

I have received reports that Tuff veins are adding in random modded blocks into its veins:
image

Upon isolating the problem this occurs even with Et Futurum alone so mod incompatibility is to be ruled out:

2023-09-29_02 56 00
2023-09-29_02 51 24
2023-09-29_02 55 16
2023-09-29_02 55 54

To replicate it, simply drink a potion of night vision and use spectator mode at the depths of the world.

Mod list (OPTIONAL)

Here's the mod list for the paranoid bunch:

crash-2023-09-29_03.00.50-client.txt

@GregoriusT
Copy link
Collaborator

GregoriusT commented Sep 29, 2023

I would like to know how the heck this happens to you because i have the exact same bug in GT6 and i have no idea how the Block IDs mess up this badly!

This specifically happens to me in random Chunks, as opposed to everywhere.

@Roadhog360
Copy link
Owner

Oversight with the deepslate ore registry, the deepslate registry still gets them when deepslate ores are not enable. And someone designed the setBlock function to just place random shit from the block registry instead of failing the setBlock!?

@Roadhog360 Roadhog360 added the Priority: High For serious issues label Sep 29, 2023
@GregoriusT
Copy link
Collaborator

Yeah somehow setBlock sometimes actually fails to set the Block you pass as parameter, and instead just gets some random Block ID. That is how it happens in GT6, and I have no Idea how to frikkin fix that...

@Roadhog360
Copy link
Owner

As explained above, it's because EFR is placing blocks that aren't actually registered.

@GregoriusT
Copy link
Collaborator

Welp, guess that was not how random chunks cause that Issue then, that's just how it happens in 100% of the cases...

@Roadhog360
Copy link
Owner

Roadhog360 commented Sep 29, 2023

I might push a fix to BugTorch to make it so any unregistered or null block placement will just fail the setBlock. I'll still fix it within EFR but it'd be useful in case other mods have the same issue. And a failsafe for me making this mistake again.

@GregoriusT
Copy link
Collaborator

That might be a bad idea because it would make setBlock calls even more laggy, since you need to look up an ID just to check if the ID you are gonna look up is correct.

@Roadhog360
Copy link
Owner

Roadhog360 commented Sep 29, 2023

Probably could use a map to cache if it failed or succeeded. And null instantly returns false before even trying to do anything

@GregoriusT
Copy link
Collaborator

GregoriusT commented Sep 29, 2023

using a map to cache the result of another map does not sound like it would actually do anything, does it? and yeah null check is fine ofc

DrParadox7 added a commit to DrParadox7/Lost-Era-Modpack that referenced this issue Sep 29, 2023
Temporary fix for Et Futurum's Tuff generation bug Roadhog360/Et-Futurum-Requiem#341 using until COFH World until an official fix is released internally on their side.
@Roadhog360 Roadhog360 changed the title Tuff veins are generating in random blocks Deepslate/tuff causes random blocks to generate when deepslate ores are turned off Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High For serious issues
Projects
None yet
Development

No branches or pull requests

3 participants