1.19.4-pre1
This commit is contained in:
1 parent
4d842ae382
commit
4c8e477f4b
15 files changed
+37
-30
No files matched your search
@@ -1331,7 +1331,7 @@ public class EntityValue extends Value
|
||||
{
|
||||
List<Value> list = lv.getItems();
|
||||
Vector3Argument locator = Vector3Argument.findIn(list, 0, false, false);
|
||||
pos = new BlockPos(locator.vec.x, locator.vec.y, locator.vec.z);
|
||||
pos = BlockPos.containing(locator.vec.x, locator.vec.y, locator.vec.z);
|
||||
if (list.size() > locator.offset)
|
||||
{
|
||||
distance = (int) NumericValue.asNumber(list.get(locator.offset)).getLong();
|
||||
@@ -1365,7 +1365,7 @@ public class EntityValue extends Value
|
||||
{
|
||||
List<Value> params = lv.getItems();
|
||||
Vector3Argument blockLocator = Vector3Argument.findIn(params, 0, false, false);
|
||||
BlockPos pos = new BlockPos(blockLocator.vec);
|
||||
BlockPos pos = BlockPos.containing(blockLocator.vec);
|
||||
ResourceKey<Level> world = spe.getCommandSenderWorld().dimension();
|
||||
float angle = spe.getYHeadRot();
|
||||
boolean forced = false;
|
||||
|
||||
@@ -315,7 +315,7 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
|
||||
if (v1 instanceof final ListValue lv)
|
||||
{
|
||||
List<Value> args = lv.getItems();
|
||||
BlockPos pos = new BlockPos(
|
||||
BlockPos pos = BlockPos.containing(
|
||||
NumericValue.asNumber(args.get(0)).getDouble(),
|
||||
NumericValue.asNumber(args.get(1)).getDouble(),
|
||||
NumericValue.asNumber(args.get(2)).getDouble());
|
||||
@@ -326,7 +326,7 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
|
||||
{
|
||||
return !screenValue.isOpen() ? null : new InventoryLocator(screenValue.getPlayer(), screenValue.getPlayer().blockPosition(), screenValue.getInventory(), offset + 1);
|
||||
}
|
||||
BlockPos pos = new BlockPos(
|
||||
BlockPos pos = BlockPos.containing(
|
||||
NumericValue.asNumber(v1).getDouble(),
|
||||
NumericValue.asNumber(params.get(1 + offset)).getDouble(),
|
||||
NumericValue.asNumber(params.get(2 + offset)).getDouble());
|
||||
|
||||
Reference in new issue
Block a user