profiler remembers requestee, and better rounding in scarpet
This commit is contained in:
1 parent
a7addf7948
commit
8a01ebea41
7 files changed
+50
-25
No files matched your search
@@ -9,6 +9,7 @@ import carpet.script.exception.InternalExpressionException;
|
||||
import carpet.settings.CarpetSettings;
|
||||
import com.mojang.brigadier.StringReader;
|
||||
import com.mojang.brigadier.exceptions.CommandSyntaxException;
|
||||
import net.minecraft.client.network.packet.EntityPassengersSetS2CPacket;
|
||||
import net.minecraft.client.network.packet.EntityPositionS2CPacket;
|
||||
import net.minecraft.client.network.packet.EntityVelocityUpdateS2CPacket;
|
||||
import net.minecraft.command.EntitySelector;
|
||||
@@ -583,6 +584,11 @@ public class EntityValue extends Value
|
||||
{
|
||||
e.startRiding(((EntityValue) v).getEntity(),true);
|
||||
}
|
||||
if (e instanceof ServerPlayerEntity)
|
||||
{
|
||||
((ServerPlayerEntity)e).networkHandler.sendPacket(new EntityPassengersSetS2CPacket(e));
|
||||
//...
|
||||
}
|
||||
});
|
||||
put("drop_passengers", (e, v) -> e.removeAllPassengers());
|
||||
put("mount_passengers", (e, v) -> {
|
||||
|
||||
Reference in new issue
Block a user