Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 00:00:28 +01:00
Merge pull request #1260 from KennyTV/dev
Fix tridents (and building)
Dieser Commit ist enthalten in:
Commit
49e85e2b8a
@ -270,7 +270,8 @@ public class Entity1_13Types {
|
|||||||
EVOCATION_FANGS(79, EntityType.EVOCATION_FANGS),
|
EVOCATION_FANGS(79, EntityType.EVOCATION_FANGS),
|
||||||
FISHIHNG_HOOK(90, EntityType.FISHING_BOBBER),
|
FISHIHNG_HOOK(90, EntityType.FISHING_BOBBER),
|
||||||
SPECTRAL_ARROW(91, EntityType.SPECTRAL_ARROW),
|
SPECTRAL_ARROW(91, EntityType.SPECTRAL_ARROW),
|
||||||
DRAGON_FIREBALL(93, EntityType.DRAGON_FIREBALL);
|
DRAGON_FIREBALL(93, EntityType.DRAGON_FIREBALL),
|
||||||
|
TRIDENT(94, EntityType.TRIDENT);
|
||||||
|
|
||||||
private final int id;
|
private final int id;
|
||||||
private final EntityType type;
|
private final EntityType type;
|
||||||
|
@ -83,12 +83,8 @@ public class EntityPackets {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if ((type1_14.is(Entity1_14Types.EntityType.ITEM) && data > 0)
|
} else if ((type1_14.is(Entity1_14Types.EntityType.ITEM) && data > 0)
|
||||||
|| type1_14.is(Entity1_14Types.EntityType.ARROW)
|
|| type1_14.isOrHasParent(Entity1_14Types.EntityType.ABSTRACT_ARROW)) {
|
||||||
|| type1_14.is(Entity1_14Types.EntityType.SPECTRAL_ARROW)
|
if (type1_14.isOrHasParent(Entity1_14Types.EntityType.ABSTRACT_ARROW)) {
|
||||||
|| type1_14.is(Entity1_14Types.EntityType.TRIDENT)) {
|
|
||||||
if (type1_14.is(Entity1_14Types.EntityType.ARROW)
|
|
||||||
|| type1_14.is(Entity1_14Types.EntityType.SPECTRAL_ARROW)
|
|
||||||
|| type1_14.is(Entity1_14Types.EntityType.TRIDENT))) { // todo check if trident needs it
|
|
||||||
wrapper.set(Type.INT, 0, data - 1);
|
wrapper.set(Type.INT, 0, data - 1);
|
||||||
}
|
}
|
||||||
// send velocity in separate packet, 1.14 is now ignoring the velocity
|
// send velocity in separate packet, 1.14 is now ignoring the velocity
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren