9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 02:19:23 +00:00

修复火音效

This commit is contained in:
XiaoMoMi
2025-04-09 22:34:47 +08:00
parent 36c677ca9b
commit b7e05a33de
2 changed files with 6 additions and 0 deletions

View File

@@ -318,6 +318,9 @@ public class BukkitBlockManager extends AbstractBlockManager {
}
}
affectedBlocks.remove(Reflections.instance$Blocks$FIRE);
affectedBlocks.remove(Reflections.instance$Blocks$SOUL_FIRE);
this.affectedSoundBlocks = ImmutableSet.copyOf(affectedBlocks);
ImmutableMap.Builder<Key, Key> soundMapperBuilder = ImmutableMap.builder();

View File

@@ -3519,6 +3519,7 @@ public class Reflections {
public static final Object instance$Blocks$STONE;
public static final Object instance$Blocks$STONE$defaultState;
public static final Object instance$Blocks$FIRE;
public static final Object instance$Blocks$SOUL_FIRE;
public static final Object instance$Blocks$ICE;
static {
@@ -3528,6 +3529,8 @@ public class Reflections {
instance$Blocks$AIR$defaultState = method$Block$defaultBlockState.invoke(instance$Blocks$AIR);
Object fire = method$ResourceLocation$fromNamespaceAndPath.invoke(null, "minecraft", "fire");
instance$Blocks$FIRE = method$Registry$get.invoke(instance$BuiltInRegistries$BLOCK, fire);
Object soulFire = method$ResourceLocation$fromNamespaceAndPath.invoke(null, "minecraft", "soul_fire");
instance$Blocks$SOUL_FIRE = method$Registry$get.invoke(instance$BuiltInRegistries$BLOCK, soulFire);
Object stone = method$ResourceLocation$fromNamespaceAndPath.invoke(null, "minecraft", "stone");
instance$Blocks$STONE = method$Registry$get.invoke(instance$BuiltInRegistries$BLOCK, stone);
instance$Blocks$STONE$defaultState = method$Block$defaultBlockState.invoke(instance$Blocks$STONE);