mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 23:19:15 +00:00
添加更简写法预防呆瓜
This commit is contained in:
@@ -244,7 +244,7 @@ furniture:
|
|||||||
# - Recommended to keep enabled for better performance
|
# - Recommended to keep enabled for better performance
|
||||||
hide-base-entity: true
|
hide-base-entity: true
|
||||||
# Requires a restart to apply
|
# Requires a restart to apply
|
||||||
# interaction (best performance)
|
# interaction (the best performance)
|
||||||
# boat (better compatibility with some anti-cheat plugin)
|
# boat (better compatibility with some anti-cheat plugin)
|
||||||
collision-entity-type: interaction
|
collision-entity-type: interaction
|
||||||
|
|
||||||
|
|||||||
@@ -150,10 +150,14 @@ public abstract class AbstractFontManager implements FontManager {
|
|||||||
|
|
||||||
private void registerImageTags() {
|
private void registerImageTags() {
|
||||||
for (BitmapImage image : this.images.values()) {
|
for (BitmapImage image : this.images.values()) {
|
||||||
String id = image.id().toString();
|
Key key = image.id();
|
||||||
|
String id = key.toString();
|
||||||
String simpleImageTag = imageTag(id);
|
String simpleImageTag = imageTag(id);
|
||||||
this.networkTagMapper.put(simpleImageTag, ComponentProvider.constant(image.componentAt(0, 0)));
|
this.networkTagMapper.put(simpleImageTag, ComponentProvider.constant(image.componentAt(0, 0)));
|
||||||
this.networkTagMapper.put("\\" + simpleImageTag, ComponentProvider.constant(Component.text(simpleImageTag)));
|
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 i = 0; i < image.rows(); i++) {
|
||||||
for (int j = 0; j < image.columns(); j++) {
|
for (int j = 0; j < image.columns(); j++) {
|
||||||
String imageArgs = id + ":" + i + ":" + j;
|
String imageArgs = id + ":" + i + ":" + j;
|
||||||
|
|||||||
Reference in New Issue
Block a user