mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-01-31 16:00:15 +00:00
Initial update to 1.14
So very little works, but it compiles and runs. Things to resolve over the next few days: - Horrible mappings (should largely be resolved by tomorrow). - Cannot send extra data over containers - we'll have to see what Forge does here. - Turtle models are broken - No block drops yet - this will largely be cherry-picking whatever I did on Fabric. - Weird inventory desyncs (items don't show up initially when interacting with a CC inventory). - Probably lots of other things.
This commit is contained in:
@@ -8,7 +8,7 @@ package dan200.computercraft.shared.command;
|
||||
|
||||
import net.minecraft.command.CommandSource;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
|
||||
import java.util.function.Predicate;
|
||||
@@ -62,8 +62,8 @@ public enum UserLevel implements Predicate<CommandSource>
|
||||
MinecraftServer server = source.getServer();
|
||||
Entity sender = source.getEntity();
|
||||
|
||||
if( server.isSinglePlayer() && sender instanceof EntityPlayer &&
|
||||
((EntityPlayer) sender).getGameProfile().getName().equalsIgnoreCase( server.getServerModName() ) )
|
||||
if( server.isSinglePlayer() && sender instanceof PlayerEntity &&
|
||||
((PlayerEntity) sender).getGameProfile().getName().equalsIgnoreCase( server.getServerModName() ) )
|
||||
{
|
||||
if( this == OWNER || this == OWNER_OP ) return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user