mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-02-28 21:39:44 +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:
@@ -9,7 +9,7 @@ package dan200.computercraft.shared.command;
|
||||
import com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType;
|
||||
import com.mojang.brigadier.exceptions.DynamicCommandExceptionType;
|
||||
import com.mojang.brigadier.exceptions.SimpleCommandExceptionType;
|
||||
import net.minecraft.util.text.TextComponentTranslation;
|
||||
import net.minecraft.util.text.TranslationTextComponent;
|
||||
|
||||
public final class Exceptions
|
||||
{
|
||||
@@ -28,16 +28,16 @@ public final class Exceptions
|
||||
|
||||
private static SimpleCommandExceptionType translated( String key )
|
||||
{
|
||||
return new SimpleCommandExceptionType( new TextComponentTranslation( key ) );
|
||||
return new SimpleCommandExceptionType( new TranslationTextComponent( key ) );
|
||||
}
|
||||
|
||||
private static DynamicCommandExceptionType translated1( String key )
|
||||
{
|
||||
return new DynamicCommandExceptionType( x -> new TextComponentTranslation( key, x ) );
|
||||
return new DynamicCommandExceptionType( x -> new TranslationTextComponent( key, x ) );
|
||||
}
|
||||
|
||||
private static Dynamic2CommandExceptionType translated2( String key )
|
||||
{
|
||||
return new Dynamic2CommandExceptionType( ( x, y ) -> new TextComponentTranslation( key, x, y ) );
|
||||
return new Dynamic2CommandExceptionType( ( x, y ) -> new TranslationTextComponent( key, x, y ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user