mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-19 19:59:37 +00:00
Network migration
This commit is contained in:
1 parent
23cfe73004
commit
baafce9698
59 files changed
+448
-555
No files matched your search
@@ -186,12 +186,12 @@ public enum EntityManager {
|
||||
|
||||
public boolean teleportEntity(Entity src, Entity trg, EntityPlayerMP msgtrg){
|
||||
if ((src == null) && (msgtrg != null)) {
|
||||
PacketManager.sendToPlayer(new Packet3Chat(ChatMessageComponent.createFromText(String.format("\u00A7oCannot find source entity %s", src))), msgtrg);
|
||||
PacketManager.sendChatMsg(String.format("\u00A7oCannot find source entity %s", src), msgtrg);
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((trg == null) && (msgtrg != null)) {
|
||||
PacketManager.sendToPlayer(new Packet3Chat(ChatMessageComponent.createFromText(String.format("\u00A7oCannot find target entity %s", trg))), msgtrg);
|
||||
PacketManager.sendChatMsg(String.format("\u00A7oCannot find target entity %s", src), msgtrg);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user