mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
修正语言文件键
This commit is contained in:
@@ -54,10 +54,10 @@ The code you contribute will be open-sourced under the GPLv3 license. If you pre
|
|||||||
3. Once done, submit a **pull request** to **dev** branch for review. We appreciate your contributions!
|
3. Once done, submit a **pull request** to **dev** branch for review. We appreciate your contributions!
|
||||||
|
|
||||||
## Differences Between Versions
|
## Differences Between Versions
|
||||||
| Version | Official Support | Max Players | Dev Builds |
|
| Version | Official Support | Exclusive Features | Dev Builds |
|
||||||
|-------------------|------------------|-------------|------------|
|
|-------------------|------------------|--------------------|------------|
|
||||||
| Community Edition | ❌ No | 30 | ❌ No |
|
| Community Edition | ❌ No | ❌ No | ❌ No |
|
||||||
| Premium Edition | ✔️ Yes | Unlimited | ✔️ Yes |
|
| Premium Edition | ✔️ Yes | ✔️ Yes | ✔️ Yes |
|
||||||
|
|
||||||
### 💖 Support the Developer
|
### 💖 Support the Developer
|
||||||
Help sustain CraftEngine's development by going Premium!
|
Help sustain CraftEngine's development by going Premium!
|
||||||
|
|||||||
@@ -137,11 +137,11 @@ public class DirectionalAttachedBlockBehavior extends AbstractCanSurviveBlockBeh
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BlockBehavior create(CustomBlock block, Map<String, Object> arguments) {
|
public BlockBehavior create(CustomBlock block, Map<String, Object> arguments) {
|
||||||
Property<?> facing = ResourceConfigUtils.requireNonNullOrThrow(block.getProperty("facing"), "warning.config.block.behavior.surface_attached.missing_facing");
|
Property<?> facing = ResourceConfigUtils.requireNonNullOrThrow(block.getProperty("facing"), "warning.config.block.behavior.directional_attached.missing_facing");
|
||||||
boolean isHorizontalDirection = facing.valueClass() == HorizontalDirection.class;
|
boolean isHorizontalDirection = facing.valueClass() == HorizontalDirection.class;
|
||||||
boolean isDirection = facing.valueClass() == Direction.class;
|
boolean isDirection = facing.valueClass() == Direction.class;
|
||||||
if (!(isHorizontalDirection || isDirection)) {
|
if (!(isHorizontalDirection || isDirection)) {
|
||||||
throw new LocalizedResourceConfigException("warning.config.block.behavior.surface_attached.missing_facing");
|
throw new LocalizedResourceConfigException("warning.config.block.behavior.directional_attached.missing_facing");
|
||||||
}
|
}
|
||||||
Tuple<List<Object>, Set<Object>, Set<String>> tuple = readTagsAndState(arguments);
|
Tuple<List<Object>, Set<Object>, Set<String>> tuple = readTagsAndState(arguments);
|
||||||
int delay = ResourceConfigUtils.getAsInt(arguments.getOrDefault("delay", 0), "delay");
|
int delay = ResourceConfigUtils.getAsInt(arguments.getOrDefault("delay", 0), "delay");
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ warning.config.block.behavior.pressure_plate.missing_powered: "<yellow>Issue fou
|
|||||||
warning.config.block.behavior.grass.missing_feature: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'feature' argument for 'grass_block' behavior.</yellow>"
|
warning.config.block.behavior.grass.missing_feature: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'feature' argument for 'grass_block' behavior.</yellow>"
|
||||||
warning.config.block.behavior.double_high.missing_half: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'half' property for 'double_block' behavior.</yellow>"
|
warning.config.block.behavior.double_high.missing_half: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'half' property for 'double_block' behavior.</yellow>"
|
||||||
warning.config.block.behavior.change_over_time.missing_next_block: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'next_block' argument for 'change_over_time_block' behavior.</yellow>"
|
warning.config.block.behavior.change_over_time.missing_next_block: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'next_block' argument for 'change_over_time_block' behavior.</yellow>"
|
||||||
warning.config.block.behavior.surface_attached.missing_facing: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'facing' property for 'surface_attached_block' behavior.</yellow>"
|
warning.config.block.behavior.directional_attached.missing_facing: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'facing' property for 'directional_attached_block' behavior.</yellow>"
|
||||||
warning.config.block.behavior.wall_torch_particle.missing_facing: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'facing' property for 'wall_torch_particle_block' behavior.</yellow>"
|
warning.config.block.behavior.wall_torch_particle.missing_facing: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'facing' property for 'wall_torch_particle_block' behavior.</yellow>"
|
||||||
warning.config.block.behavior.fence.missing_north: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'north' property for 'fence_block' behavior.</yellow>"
|
warning.config.block.behavior.fence.missing_north: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'north' property for 'fence_block' behavior.</yellow>"
|
||||||
warning.config.block.behavior.fence.missing_east: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'east' property for 'fence_block' behavior.</yellow>"
|
warning.config.block.behavior.fence.missing_east: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'east' property for 'fence_block' behavior.</yellow>"
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ warning.config.block.behavior.pressure_plate.missing_powered: "<yellow>在文件
|
|||||||
warning.config.block.behavior.grass.missing_feature: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'grass_block' 行为缺少必需的 'feature' 参数</yellow>"
|
warning.config.block.behavior.grass.missing_feature: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'grass_block' 行为缺少必需的 'feature' 参数</yellow>"
|
||||||
warning.config.block.behavior.double_high.missing_half: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'double_block' 行为缺少必需的 'half' 属性</yellow>"
|
warning.config.block.behavior.double_high.missing_half: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'double_block' 行为缺少必需的 'half' 属性</yellow>"
|
||||||
warning.config.block.behavior.change_over_time.missing_next_block: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'change_over_time_block' 行为缺少必需的 'next-block' 参数</yellow>"
|
warning.config.block.behavior.change_over_time.missing_next_block: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'change_over_time_block' 行为缺少必需的 'next-block' 参数</yellow>"
|
||||||
warning.config.block.behavior.surface_attached.missing_facing: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'surface_attached_block' 行为缺少必需的 'facing' 属性</yellow>"
|
warning.config.block.behavior.directional_attached.missing_facing: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'directional_attached_block' 行为缺少必需的 'facing' 属性</yellow>"
|
||||||
warning.config.block.behavior.wall_torch_particle.missing_facing: "<yellow>在文件 <arg:0> 发现问题 - 配置项 '<arg:1>' 的 'wall_torch_particle_block' 行为缺少必需的 'facing' 属性</yellow>"
|
warning.config.block.behavior.wall_torch_particle.missing_facing: "<yellow>在文件 <arg:0> 发现问题 - 配置项 '<arg:1>' 的 'wall_torch_particle_block' 行为缺少必需的 'facing' 属性</yellow>"
|
||||||
warning.config.block.behavior.fence.missing_north: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'fence_block' 行为缺少必需的 'north' 属性</yellow>"
|
warning.config.block.behavior.fence.missing_north: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'fence_block' 行为缺少必需的 'north' 属性</yellow>"
|
||||||
warning.config.block.behavior.fence.missing_east: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'fence_block' 行为缺少必需的 'east' 属性</yellow>"
|
warning.config.block.behavior.fence.missing_east: "<yellow>在文件 <arg:0> 发现问题 - 方块 '<arg:1>' 的 'fence_block' 行为缺少必需的 'east' 属性</yellow>"
|
||||||
|
|||||||
Reference in New Issue
Block a user