File tree Expand file tree Collapse file tree 11 files changed +16
-9
lines changed
src/main/java/mobi/omegacentauri/raspberryjammod
src/main/java/mobi/omegacentauri/raspberryjammod Expand file tree Collapse file tree 11 files changed +16
-9
lines changed Original file line number Diff line number Diff 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 "
2424group= " mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2525archivesBaseName = " RaspberryJamMod"
2626
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ s/MobEffects\.nightVision/MobEffects.NIGHT_VISION/g
44s /\. thePlayer /\. player /g
55s /\. theWorld /\. world /g
66s /\[ 1\. 9,1\. 9\. 4) /[1.9.4,1.11) /
7+ s /getUnformattedTextForChat /getUnformattedComponentText /g
78s /NOMINAL_VERSION\s * =\s * 1009000 /NOMINAL_VERSION = 1010000 /
Original file line number Diff line number Diff 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 "
2424group= " mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2525archivesBaseName = " RaspberryJamMod"
2626
Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ s/spawnEntityInWorld/spawnEntity/g
1515s /createEntityByName /createEntityByIDFromName /g
1616s /worldServers /worlds /g
1717s /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
Original file line number Diff line number Diff 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 "
2424group= " mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2525archivesBaseName = " RaspberryJamMod"
2626
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 5555public 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 ;
Original file line number Diff line number Diff 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 "
2424group= " mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2525archivesBaseName = " RaspberryJamMod"
2626
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ s/Blocks\.air/Blocks.AIR/g
22s /MobEffects\. levitation /MobEffects.LEVITATION /g
33s /MobEffects\. nightVision /MobEffects.NIGHT_VISION /g
44s /NOMINAL_VERSION\s * =\s * 1009000 /NOMINAL_VERSION = 1009004 /
5+ s /getUnformattedTextForChat /getUnformattedComponentText /g
56s /\[ 1\. 9,1\. 9\. 4) /[1.9.4,1.10) /
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ buildscript {
1717
1818apply plugin : ' forge'
1919
20- version = " 0.88 "
20+ version = " 0.89 "
2121group= " mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2222archivesBaseName = " RaspberryJamMod"
2323
You can’t perform that action at this time.
0 commit comments