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

Custom TNT ethical fix #4768

Closed
wants to merge 1 commit into from

Conversation

Suisuroru
Copy link

@Suisuroru Suisuroru commented Nov 27, 2024

This bug will not happen on vanilla server, it will happened with some mod like AE2, their custom tnt can provide the ethical logic misjudgment. I have modified the logic for determining whether TNT is ethical to recognize other entities with TNT fields. I have checked the situation where the vanilla item does not have TNT, and those that have been judged as ethical have already been judged as TNT, so there should be no misjudgment

@Suisuroru Suisuroru changed the title resolving the ethical dilemma of pushing custom TNT with a piston Custom TNT ethical fix Nov 27, 2024
@TheRealWormbo
Copy link
Collaborator

I think I'd prefer a solution that doesn't use string matching, because this needs to test every single block that is being moved and thus is somewhat performance-critical. Maybe something like testing the moved state for a block tag?

Which block exactly gets around the check?

@Suisuroru
Copy link
Author

Suisuroru commented Nov 27, 2024 via email

@Suisuroru
Copy link
Author

Suisuroru commented Nov 28, 2024 via email

TheRealWormbo added a commit to TheRealWormbo/Botania that referenced this pull request Nov 28, 2024
@TheRealWormbo
Copy link
Collaborator

Can you please look at #4769 to check if that implementation would fix the issue?

@Suisuroru
Copy link
Author

Suisuroru commented Nov 28, 2024 via email

@Suisuroru
Copy link
Author

I think it is solved in #4769

@Suisuroru Suisuroru closed this Nov 28, 2024
TheRealWormbo added a commit that referenced this pull request Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants