Container-Stuff

This commit is contained in:
Sebastian Hartte
2020-06-02 02:33:05 +02:00
parent 9f63859769
commit fc300745cd
43 changed files with 197 additions and 202 deletions
@@ -29,7 +29,7 @@ import javax.annotation.Nonnull;
import com.google.common.collect.ImmutableSet;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerEntityMP;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.inventory.IContainerListener;
import net.minecraft.tileentity.TileEntity;
@@ -263,11 +263,11 @@ public class ContainerCraftConfirm extends AEBaseContainer
{
if( g instanceof PlayerEntity )
{
NetworkHandler.instance().sendTo( a, (PlayerEntityMP) g );
NetworkHandler.instance().sendTo( b, (PlayerEntityMP) g );
NetworkHandler.instance().sendTo( a, (ServerPlayerEntity) g );
NetworkHandler.instance().sendTo( b, (ServerPlayerEntity) g );
if( c != null )
{
NetworkHandler.instance().sendTo( c, (PlayerEntityMP) g );
NetworkHandler.instance().sendTo( c, (ServerPlayerEntity) g );
}
}
}