Predicted break: test BaseFireBlock by its class, as the server does

The world side checks Class::BaseFire; the tag is a data-pack list that can
differ from the class.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-26 12:14:59 +01:00
parent c80b3b4950
commit fe19efb917
+1 -1
View File
@@ -3817,7 +3817,7 @@ impl Game<'_> {
// sound), which BaseFireBlock skips: the server's extinguish sound
// is all a player hears.
let facts = self.res.facts().get(state);
if !self.res.items().block_in_tag("minecraft:fire", &facts.name) {
if !facts.has_class("BaseFireBlock") {
let s = facts.sounds.clone();
let at = [
f64::from(pos[0]) + 0.5,