mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 06:14:46 +00:00
Replace !Proxies.common.isSimulating(world) with standard world.isRemote
This commit is contained in:
1 parent
1e89bab556
commit
4234c38d69
44 files changed
+66
-102
No files matched your search
@@ -59,7 +59,7 @@ public class ContainerLetter extends ContainerItemInventory<LetterInventory> {
|
||||
}
|
||||
|
||||
// Rip open delivered mails
|
||||
if (Proxies.common.isSimulating(player.worldObj)) {
|
||||
if (!player.worldObj.isRemote) {
|
||||
if (inventory.getLetter().isProcessed()) {
|
||||
inventory.onLetterOpened();
|
||||
}
|
||||
@@ -78,7 +78,7 @@ public class ContainerLetter extends ContainerItemInventory<LetterInventory> {
|
||||
@Override
|
||||
public void onContainerClosed(EntityPlayer entityplayer) {
|
||||
|
||||
if (Proxies.common.isSimulating(entityplayer.worldObj)) {
|
||||
if (!entityplayer.worldObj.isRemote) {
|
||||
ILetter letter = inventory.getLetter();
|
||||
if (!letter.isProcessed()) {
|
||||
IMailAddress sender = PostManager.postRegistry.getMailAddress(entityplayer.getGameProfile());
|
||||
@@ -183,7 +183,7 @@ public class ContainerLetter extends ContainerItemInventory<LetterInventory> {
|
||||
/* Managing Trade info */
|
||||
private void updateTradeInfo(World world, IMailAddress address) {
|
||||
// Updating is done by the server.
|
||||
if (!Proxies.common.isSimulating(world)) {
|
||||
if (world.isRemote) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user