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

添加更简写法预防呆瓜

This commit is contained in:
XiaoMoMi
2025-10-12 17:06:22 +08:00
parent 48bb0bb3f0
commit a19cd429aa
2 changed files with 6 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ furniture:
# - Recommended to keep enabled for better performance
hide-base-entity: true
# Requires a restart to apply
# interaction (best performance)
# interaction (the best performance)
# boat (better compatibility with some anti-cheat plugin)
collision-entity-type: interaction

View File

@@ -150,10 +150,14 @@ public abstract class AbstractFontManager implements FontManager {
private void registerImageTags() {
for (BitmapImage image : this.images.values()) {
String id = image.id().toString();
Key key = image.id();
String id = key.toString();
String simpleImageTag = imageTag(id);
this.networkTagMapper.put(simpleImageTag, ComponentProvider.constant(image.componentAt(0, 0)));
this.networkTagMapper.put("\\" + simpleImageTag, ComponentProvider.constant(Component.text(simpleImageTag)));
String simplerImageTag = imageTag(key.value());
this.networkTagMapper.put(simplerImageTag, ComponentProvider.constant(image.componentAt(0, 0)));
this.networkTagMapper.put("\\" + simplerImageTag, ComponentProvider.constant(Component.text(simplerImageTag)));
for (int i = 0; i < image.rows(); i++) {
for (int j = 0; j < image.columns(); j++) {
String imageArgs = id + ":" + i + ":" + j;