Skip to content

Commit

Permalink
fixed a bug in the FMLEventHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
tudbut committed Jan 1, 2021
1 parent 302709d commit dccb11b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions help.chat.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
§k||||||||||||||||||||||||||||||||
§c§lTTC client
§k||||||||||||||||||||||||||||||||
§avB1.2.0f
§avB1.2.0g
BETA
§71.2.0
§8f
§8g
§a§lHelp

§aCurrent prefix: %p
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tudbut/mod/client/ttc/TTC.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
public class TTC {
public static final String MODID = "ttc";
public static final String NAME = "TTC Client";
public static final String VERSION = "vB1.2.0f";
public static final String VERSION = "vB1.2.0g";

public static Module[] modules;
public static EntityPlayerSP player;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,9 @@ public void onJoin(EntityJoinWorldEvent event) {
@SubscribeEvent
public void onDeath(LivingDeathEvent event) {
try {
if (event.getEntity().getName().equals(TTC.player.getName()) && EntityPlayer.class.isAssignableFrom(event.getEntity().getClass())) {
if (event.getEntity().getName().equals(TTC.player.getName()) && event.getEntity().getClass().getSimpleName().contains("Player")) {
TPAParty.getInstance().enabled = false;
TPAParty.getInstance().onDisable();
TTC.player = Minecraft.getMinecraft().player;
TTC.world = Minecraft.getMinecraft().world;
ChatUtils.print("§c§l§k|||§c§l You died at " + event.getEntity().getPosition());
}
} catch (Exception ignore) { }
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"modid": "ttc",
"name": "TTC Client",
"description": "",
"version": "vB1.2.0f",
"version": "vB1.2.0g",
"mcversion": "${mcversion}",
"url": "",
"updateUrl": "",
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
vB1.2.0f
vB1.2.0g

0 comments on commit dccb11b

Please sign in to comment.