Skip to content

Commit 80ad476

Browse files
committed
Update gradle + NewMapNotifier click-to-copy copies REAL X Y Z coords
1 parent 573eefc commit 80ad476

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ mod_id=evmod
2828
mod_name=Ev's Mod
2929

3030
#2 = public database, NewMapNotifier, /mapartgroup seen/2b2t.org, x/SIZE, configs refactor, better tooltips
31-
#1 =
32-
mod_version=2.1
31+
#2 = cache-crash fix, (PLANNED): bulk-analysis (map stats for containers/walls)
32+
mod_version=2.2
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME
7-
zipStorePath=wrapper/dists
7+
zipStorePath=wrapper/dists

src/main/java/net/evmodder/evmod/apis/NewMapNotifier.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ public static final void call(final ItemFrameEntity ife, final UUID colorsId){ /
3232

3333
if(notifyInChat){
3434
MinecraftClient.getInstance().player.sendMessage(
35-
Text.literal("New mapart: "+pos)
36-
// unicode for symbol ⎘
37-
.append(Text.literal(" \u2398 ").styled(style -> style.withClickEvent(new ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, pos))))
38-
// Hover shows map itemname
35+
// Text.literal("New mapart: "+pos)
36+
// // unicode for symbol ⎘
37+
// .append(Text.literal(" \u2398 ").styled(...COPY_TO_CLIPBOARD))
38+
Text.literal("New mapart: "+pos+" \u2398 ")
3939
.withColor(color)
40+
// Click to copy coords
41+
.styled(style -> style.withClickEvent(new ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD,x+" "+ife.getBlockY()+" "+z)))
42+
// Hover shows map itemname
4043
.styled(style -> style.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, ife.getHeldItemStack().getName())))
4144
, /*actionbar=*/false);
4245
}

0 commit comments

Comments
 (0)