1
0

fix: 解决部分方块的粒子效果纹理是黑紫方块的问题

This commit is contained in:
2025-05-06 21:45:58 +08:00
parent 9eac5e5db8
commit 46fabc2901
3 changed files with 18 additions and 0 deletions
+5
View File
@@ -131,6 +131,7 @@ global.setBlockProps = function (block, opts) {
let resistance = defaults(opts.resistance, 16);
let soundType = defaults(opts.soundType, 'stone');
let textureAll = defaults(opts.textureAll, '');
let textureParticle = defaults(opts.textureParticle, '');
let textureSide = defaults(opts.textureSide, '');
let textureSideNS = defaults(opts.textureSideNS, '');
let textureSideWE = defaults(opts.textureSideWE, '');
@@ -177,6 +178,10 @@ global.setBlockProps = function (block, opts) {
block.texture(textureAll);
}
if (textureParticle) {
block.texture('particle', textureParticle);
}
if (textureSide) {
block.texture([
Direction.NORTH,