Fix randomization and FilteredTextureUtil with CFI
This commit is contained in:
parent
f2b592a9e1
commit
b4c3e3989c
@ -252,7 +252,12 @@ public class CreateFromImage extends Command {
|
||||
// roughness
|
||||
// blocks
|
||||
if (argList.size() != 2) {
|
||||
C.COMMAND_SYNTAX.send(player, "/2 cfi " + argList.get(0) + " <pattern|#clipboard>");
|
||||
C.COMMAND_SYNTAX.send(player, "/2 cfi " + argList.get(0) + " <pattern|#clipboard|*>");
|
||||
return;
|
||||
}
|
||||
if (argList.get(1).equalsIgnoreCase("*")) {
|
||||
generator.setTextureUtil(Fawe.get().getTextureUtil());
|
||||
player.sendMessage("Set color palette blocks, what's next?");
|
||||
return;
|
||||
}
|
||||
context.setPreferringWildcard(true);
|
||||
|
@ -8,6 +8,8 @@ import java.util.Set;
|
||||
public class FilteredTextureUtil extends TextureUtil {
|
||||
public FilteredTextureUtil(TextureUtil parent, Set<BaseBlock> blocks) throws FileNotFoundException {
|
||||
super(parent.getFolder());
|
||||
this.validMixBiomeColors = parent.validMixBiomeColors;
|
||||
this.validMixBiomeIds = parent.validMixBiomeIds;
|
||||
this.validBiomes = parent.validBiomes;
|
||||
this.blockColors = parent.blockColors;
|
||||
this.blockDistance = parent.blockDistance;
|
||||
|
Loading…
Reference in New Issue
Block a user