From e6b4f496de6ae50bf29d4f700bbd88aa59f43afb Mon Sep 17 00:00:00 2001 From: Nameless-123 <53367549+Nameless-123@users.noreply.github.com> Date: Fri, 24 Apr 2020 12:08:03 +0200 Subject: [PATCH] took out testing stuff --- src/main/java/carpet/script/value/EntityValue.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/carpet/script/value/EntityValue.java b/src/main/java/carpet/script/value/EntityValue.java index 4d7d238c..012c1647 100644 --- a/src/main/java/carpet/script/value/EntityValue.java +++ b/src/main/java/carpet/script/value/EntityValue.java @@ -892,7 +892,7 @@ public class EntityValue extends Value throw new InternalExpressionException("'effect' needs either no arguments (clear) or effect name, duration, and optional amplifier, show particles and show icon"); }); - put("gamemode_id", (e,v)->{ + put("gamemode", (e,v)->{ if(!(e instanceof ServerPlayerEntity)){ throw new InternalExpressionException("Cannot change the gamemode of non-player entities"); } @@ -910,7 +910,7 @@ public class EntityValue extends Value ((ServerPlayerEntity) e).setGameMode(GameMode.ADVENTURE); return; } - throw new InternalExpressionException("s"+v.getString()+"s is an invalid gamemode type"); + throw new InternalExpressionException(NumericValue.asNumber(v).getLong()+" is an invalid gamemode id"); }); put("jump",(e,v)->{