mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 05:02:25 +00:00
Use .chatString() when displaying block coords in item conduit printout
This commit is contained in:
1 parent
1735fb59c8
commit
ed8845db87
2 files changed
+6
-7
No files matched your search
@@ -180,7 +180,7 @@ public class ItemConduitNetwork extends AbstractConduitNetwork<IItemConduit, IIt
|
||||
for (Target t : source.sendPriority) {
|
||||
IItemFilter f = t.inv.con.getOutputFilter(t.inv.conDir);
|
||||
if(input == null || f == null || f.doesItemPassFilter(t.inv, input)) {
|
||||
String s = Lang.localize(t.inv.getInventory().getInventoryName(), false) + " " + t.inv.location + " Distance [" + t.distance + "] ";
|
||||
String s = Lang.localize(t.inv.getInventory().getInventoryName(), false) + " " + t.inv.location.chatString() + " Distance [" + t.distance + "] ";
|
||||
result.add(s);
|
||||
}
|
||||
}
|
||||
@@ -197,7 +197,7 @@ public class ItemConduitNetwork extends AbstractConduitNetwork<IItemConduit, IIt
|
||||
if(inv.hasTarget(con, dir)) {
|
||||
IItemFilter f = inv.con.getInputFilter(inv.conDir);
|
||||
if(input == null || f == null || f.doesItemPassFilter(inv, input)) {
|
||||
result.add(Lang.localize(inv.getInventory().getInventoryName(), false) + " " + inv.location);
|
||||
result.add(Lang.localize(inv.getInventory().getInventoryName(), false) + " " + inv.location.chatString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package crazypants.util;
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.Entity;
|
||||
@@ -11,9 +9,10 @@ import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
|
||||
public final class BlockCoord {
|
||||
|
||||
public final int x;
|
||||
@@ -126,10 +125,10 @@ public final class BlockCoord {
|
||||
|
||||
public String chatString(EnumChatFormatting defaultColor) {
|
||||
return String.format(
|
||||
"x%s%d%s y%s%d%s z%s%d",
|
||||
"x%s%d%s y%s%d%s z%s%d%s",
|
||||
EnumChatFormatting.GREEN, x, defaultColor,
|
||||
EnumChatFormatting.GREEN, y, defaultColor,
|
||||
EnumChatFormatting.GREEN, z
|
||||
EnumChatFormatting.GREEN, z, defaultColor
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user