File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
java/com/viaversion/viabackwards/protocol/protocol1_20_3to1_20_5/rewriter
resources/assets/viabackwards/data Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 2323import com .viaversion .viabackwards .protocol .protocol1_20_3to1_20_5 .storage .RegistryDataStorage ;
2424import com .viaversion .viabackwards .protocol .protocol1_20_3to1_20_5 .storage .SecureChatStorage ;
2525import com .viaversion .viaversion .api .data .entity .DimensionData ;
26- import com .viaversion .viaversion .api .data .entity .TrackedEntity ;
2726import com .viaversion .viaversion .api .minecraft .RegistryEntry ;
2827import com .viaversion .viaversion .api .minecraft .entities .EntityType ;
2928import com .viaversion .viaversion .api .minecraft .entities .EntityTypes1_20_5 ;
@@ -180,14 +179,7 @@ public void register() {
180179 });
181180
182181 protocol .registerClientbound (ClientboundPackets1_20_5 .ENTITY_PROPERTIES , wrapper -> {
183- final int entityId = wrapper .passthrough (Type .VAR_INT );
184- final TrackedEntity entity = tracker (wrapper .user ()).entity (entityId );
185- if (entity == null || !entity .entityType ().isOrHasParent (EntityTypes1_20_5 .LIVINGENTITY )) {
186- // Cannot add attributes to base entities in old version
187- wrapper .cancel ();
188- return ;
189- }
190-
182+ wrapper .passthrough (Type .VAR_INT ); // Entity ID
191183 final int size = wrapper .passthrough (Type .VAR_INT );
192184 int newSize = size ;
193185 for (int i = 0 ; i < size ; i ++) {
@@ -262,6 +254,7 @@ public void onMappingDataLoaded() {
262254 mapTypes ();
263255
264256 mapEntityTypeWithData (EntityTypes1_20_5 .ARMADILLO , EntityTypes1_20_5 .COW ).tagName ();
257+ mapEntityTypeWithData (EntityTypes1_20_5 .BREEZE_WIND_CHARGE , EntityTypes1_20_5 .WIND_CHARGE ).jsonName ();
265258 }
266259
267260 @ Override
You can’t perform that action at this time.
0 commit comments