mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-26 06:43:01 +00:00
- Various stuff
This commit is contained in:
1 parent
1cc51b8a6b
commit
e7be6a3519
3 files changed
+18
-12
No files matched your search
@@ -53,11 +53,13 @@ public class EventHandlerEntity {
|
||||
if ((event.entity.worldObj.provider.dimensionId == ModConfig.dimOuterId) && ((player.ticksExisted & 7) == 0) && ((player.capabilities.isFlying) || (Hover.getHover(player.getEntityId())))){
|
||||
player.capabilities.isFlying = false;
|
||||
Hover.setHover(player.getEntityId(), false);
|
||||
String msg = StatCollector.translateToLocal("tc.break.fly");
|
||||
if(player.capabilities.isCreativeMode) {
|
||||
msg += " " + StatCollector.translateToLocal("gadomancy.eldritch.noflyCreative");
|
||||
if(!((EntityPlayer) event.entityLiving).worldObj.isRemote) {
|
||||
String msg = StatCollector.translateToLocal("tc.break.fly");
|
||||
if(player.capabilities.isCreativeMode) {
|
||||
msg += " " + StatCollector.translateToLocal("gadomancy.eldritch.noflyCreative");
|
||||
}
|
||||
player.addChatMessage(new ChatComponentText(EnumChatFormatting.ITALIC + "" + EnumChatFormatting.GRAY + msg));
|
||||
}
|
||||
player.addChatMessage(new ChatComponentText(EnumChatFormatting.ITALIC + "" + EnumChatFormatting.GRAY + msg));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user