Skip to content

Commit 1cba221

Browse files
committed
0.89; fix chat posts in read-only mode
1 parent 0848088 commit 1cba221

File tree

11 files changed

+16
-9
lines changed

11 files changed

+16
-9
lines changed

110/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plugins {
2020
id "net.minecraftforge.gradle.forge" version "2.0.2"
2121
}
2222
*/
23-
version = "0.88"
23+
version = "0.89"
2424
group= "mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2525
archivesBaseName = "RaspberryJamMod"
2626

110/fix.sed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ s/MobEffects\.nightVision/MobEffects.NIGHT_VISION/g
44
s/\.thePlayer/\.player/g
55
s/\.theWorld/\.world/g
66
s/\[1\.9,1\.9\.4)/[1.9.4,1.11)/
7+
s/getUnformattedTextForChat/getUnformattedComponentText/g
78
s/NOMINAL_VERSION\s*=\s*1009000/NOMINAL_VERSION = 1010000/

111/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plugins {
2020
id "net.minecraftforge.gradle.forge" version "2.0.2"
2121
}
2222
*/
23-
version = "0.88"
23+
version = "0.89"
2424
group= "mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2525
archivesBaseName = "RaspberryJamMod"
2626

111/fix.sed

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ s/spawnEntityInWorld/spawnEntity/g
1515
s/createEntityByName/createEntityByIDFromName/g
1616
s/worldServers/worlds/g
1717
s/DamageSource\.inWall/DamageSource.IN_WALL/g
18-
s/DamageSource\.fall/DamageSource.FALL/g
18+
s/DamageSource\.fall/DamageSource.FALL/g
19+
s/getUnformattedTextForChat/getUnformattedComponentText/g

19/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plugins {
2020
id "net.minecraftforge.gradle.forge" version "2.0.2"
2121
}
2222
*/
23-
version = "0.88"
23+
version = "0.89"
2424
group= "mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2525
archivesBaseName = "RaspberryJamMod"
2626

19/src/main/java/mobi/omegacentauri/raspberryjammod/MCEventHandlerClientOnly.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ public MCEventHandlerClientOnly() {
2121
super();
2222
doRemote = true;
2323
}
24+
25+
private static String fixMessage(String s) {
26+
if (s.startsWith("<> ")) return s.substring(3); else return s;
27+
}
2428

2529
@SubscribeEvent
2630
@SideOnly(Side.CLIENT)
2731
public void onChatEvent(ClientChatReceivedEvent event) {
2832
APIHandler.ChatDescription cd = new APIHandler.ChatDescription(Minecraft.getMinecraft().thePlayer.getEntityId(),
29-
event.getMessage().toString());
33+
fixMessage(event.getMessage().getUnformattedTextForChat()));
3034
for (APIHandler apiHandler: apiHandlers)
3135
apiHandler.addChatDescription(cd);
3236
}

19/src/main/java/mobi/omegacentauri/raspberryjammod/RaspberryJamMod.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
public class RaspberryJamMod
5656
{
5757
public static final String MODID = "raspberryjammod";
58-
public static final String VERSION = "0.88";
58+
public static final String VERSION = "0.89";
5959
public static final String NAME = "Raspberry Jam Mod";
6060
private APIServer fullAPIServer = null;
6161
private PythonExternalCommand pythonExternalCommand = null;

194/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plugins {
2020
id "net.minecraftforge.gradle.forge" version "2.0.2"
2121
}
2222
*/
23-
version = "0.88"
23+
version = "0.89"
2424
group= "mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2525
archivesBaseName = "RaspberryJamMod"
2626

194/fix.sed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ s/Blocks\.air/Blocks.AIR/g
22
s/MobEffects\.levitation/MobEffects.LEVITATION/g
33
s/MobEffects\.nightVision/MobEffects.NIGHT_VISION/g
44
s/NOMINAL_VERSION\s*=\s*1009000/NOMINAL_VERSION = 1009004/
5+
s/getUnformattedTextForChat/getUnformattedComponentText/g
56
s/\[1\.9,1\.9\.4)/[1.9.4,1.10)/

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ buildscript {
1717

1818
apply plugin: 'forge'
1919

20-
version = "0.88"
20+
version = "0.89"
2121
group= "mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2222
archivesBaseName = "RaspberryJamMod"
2323

0 commit comments

Comments
 (0)