fix: 解决部分方块的粒子效果纹理是黑紫方块的问题
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user