File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
accessors/java/org/spongepowered/common/accessor/world/entity
main/java/org/spongepowered/common/data/provider/entity Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,6 @@ public interface EntityAccessor {
91
91
92
92
@ Accessor ("portalEntrancePos" ) void accessor$portalEntrancePos (final BlockPos portalEntrancePos );
93
93
94
- @ Accessor ("passengers" ) List <Entity > accessor$passengers ();
95
-
96
94
@ Invoker ("setRot" ) void invoker$setRot (final float yRot , final float xRot );
97
95
98
96
@ Invoker ("getEncodeId" ) @ Nullable String invoker$getEncodeId ();
Original file line number Diff line number Diff line change @@ -169,8 +169,8 @@ public static void register(final DataProviderRegistrator registrator) {
169
169
.create (Keys .PASSENGERS )
170
170
.get (h -> h .getPassengers ().stream ().map (org .spongepowered .api .entity .Entity .class ::cast ).collect (Collectors .toList ()))
171
171
.set ((h , v ) -> {
172
- (( EntityAccessor ) h ). accessor$passengers (). clear ();
173
- v .forEach (v1 -> ((EntityAccessor ) h ). accessor$passengers (). add (( Entity ) v1 ));
172
+ h . ejectPassengers ();
173
+ v .forEach (v1 -> ((Entity ) v1 ). startRiding ( h , true ));
174
174
})
175
175
.create (Keys .REMAINING_AIR )
176
176
.get (h -> Math .max (0 , h .getAirSupply ()))
You can’t perform that action at this time.
0 commit comments