mirror of
https://github.com/Astatin3/MC-server-icon.git
synced 2026-06-09 00:28:05 -06:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 375557196b | |||
| 929782fa18 | |||
| d0c44a8b04 | |||
| 6defcfcee1 | |||
| 38703b2470 | |||
| 0daecaa748 | |||
| 6bce1e1793 | |||
| 7b3601c746 | |||
| a915daadc0 |
+1
-1
@@ -10,7 +10,7 @@ loader_version=0.16.14
|
||||
loom_version=1.11-SNAPSHOT
|
||||
|
||||
# Mod Properties
|
||||
mod_version=1.0.1
|
||||
mod_version=1.0.2
|
||||
maven_group=dev.astatin3.favicon
|
||||
archives_base_name=favicon
|
||||
|
||||
|
||||
@@ -84,14 +84,14 @@ public class ExampleMod implements ModInitializer {
|
||||
context.getSource().sendFeedback(() -> Text.literal("Encoding icon data..."), false);
|
||||
|
||||
|
||||
for (int y = 0; y < 64; y++) {
|
||||
String text = "";
|
||||
for (int x = 0; x < 64; x++) {
|
||||
text += mapState.colors[y * 128 + x] + ", ";
|
||||
}
|
||||
String finalText = text;
|
||||
context.getSource().sendFeedback(() -> Text.literal(finalText), false);
|
||||
}
|
||||
// for (int y = 0; y < 64; y++) {
|
||||
// String text = "";
|
||||
// for (int x = 0; x < 64; x++) {
|
||||
// text += mapState.colors[y * 128 + x] + ", ";
|
||||
// }
|
||||
// String finalText = text;
|
||||
// context.getSource().sendFeedback(() -> Text.literal(finalText), false);
|
||||
// }
|
||||
|
||||
BufferedImage bufImg = convertImage(mapState.colors);
|
||||
byte[] favicon = toBytes(bufImg);
|
||||
|
||||
Reference in New Issue
Block a user