Skip to content
This repository was archived by the owner on Jan 25, 2020. It is now read-only.

Commit 344e6b5

Browse files
committed
Fix modern fence render, better localization for present
1 parent f039b0b commit 344e6b5

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

common/fr/mcnanotech/kevin_68/nanotech_mod/city/tileentity/TileEntityModernFence.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ else if(l == this.getBlockType().blockID)
112112
@SideOnly(Side.CLIENT)
113113
public AxisAlignedBB getRenderBoundingBox()
114114
{
115-
return AxisAlignedBB.getBoundingBox(-1000D, -1000D, -1000D, 1000D, 1000D, 1000D);
115+
return AxisAlignedBB.getBoundingBox(xCoord - 2, yCoord - 2, zCoord - 2, xCoord + 2, yCoord + 2, zCoord + 2);
116116
}
117117
}

common/fr/mcnanotech/kevin_68/nanotech_mod/main/blocks/BlockPresent.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer p
4141
int day = calendar.get(5);
4242
int month = calendar.get(2);
4343

44-
if((day == 24 || day == 25 || day == 13) && month == Calendar.DECEMBER)
44+
if((day == 24 || day == 25) && month == Calendar.DECEMBER)
4545
{
4646
TileEntity tile = world.getBlockTileEntity(x, y, z);
4747
if(tile != null && tile instanceof TileEntityPresent)
@@ -54,7 +54,7 @@ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer p
5454
}
5555
else
5656
{
57-
player.addChatMessage(I18n.getString("block.present.hey") + player.username + I18n.getString("block.present.nottime"));
57+
player.addChatMessage(I18n.getStringParams("block.present.nottime", player.username));
5858
}
5959
}
6060
return true;

resources/assets/nanotech_mod/lang/en_US.lang

+1-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ nanomiteGun.auto.slow=Shoot mode : Automatic (slow)
132132
nanomiteGun.auto.fast=Shoot mode : Automatic (fast)
133133
nanomiteGun.auto.detect=Shoot mode : Automatic (mob detection)
134134

135-
block.present.hey=Hey,
136-
block.present.nottime=, it's not the time to open!
135+
block.present.nottime=Hey, %s, it's not the time to open!
137136

138137
#Achievement
139138
achievement.installMod=Install Nanotech_mod

resources/assets/nanotech_mod/lang/fr_FR.lang

+1-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ nanomiteGun.auto.slow=Mode de tire : automatique (lent)
133133
nanomiteGun.auto.fast=Mode de tire : automatique (rapide)
134134
nanomiteGun.auto.detect=Mode de tire : automatique (détection de mob)
135135

136-
block.present.hey=Hey,
137-
block.present.nottime=, ce n'est pas l'heure de l'ouvrir!
136+
block.present.nottime=Hey, %s, ce n'est pas l'heure de l'ouvrir!
138137

139138
#Achievement
140139
achievement.installMod=Install Nanotech_mod

0 commit comments

Comments
 (0)