Skip to content

Commit

Permalink
Remove unmapped piston warning
Browse files Browse the repository at this point in the history
Remove some wont-fix/unneeded todos
  • Loading branch information
kennytv committed Jun 19, 2020
1 parent f83ac57 commit bdc79c4
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void handle(PacketWrapper wrapper) throws Exception {

handleChunk(chunk);

// only patch it for signs for now, TODO-> Find all the block entities old/new to replace ids and implement in ViaVersion
// only patch it for signs for now
for (CompoundTag tag : chunk.getBlockEntities()) {
Tag idTag = tag.get("id");
if (!(idTag instanceof StringTag)) continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public void registerMap() {
public void handle(PacketWrapper wrapper) throws Exception {
// Open Inventory
if (wrapper.get(Type.VAR_INT, 0) == 2) {
wrapper.cancel(); // TODO is this replaced by something else?
wrapper.cancel();
}
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected void handleTranslate(JsonObject root, String translate) {
cancelOutgoing(ClientboundPackets1_13.CRAFT_RECIPE_RESPONSE);
cancelOutgoing(ClientboundPackets1_13.UNLOCK_RECIPES);
cancelOutgoing(ClientboundPackets1_13.ADVANCEMENTS);
cancelOutgoing(ClientboundPackets1_13.DECLARE_RECIPES); //TODO ?
cancelOutgoing(ClientboundPackets1_13.DECLARE_RECIPES);
cancelOutgoing(ClientboundPackets1_13.TAGS);

cancelIncoming(ServerboundPackets1_12_1.CRAFT_RECIPE_REQUEST);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package nl.matsv.viabackwards.protocol.protocol1_12_2to1_13.block_entity_handlers;

import nl.matsv.viabackwards.ViaBackwards;
import nl.matsv.viabackwards.protocol.protocol1_12_2to1_13.data.BackwardsMappings;
import nl.matsv.viabackwards.protocol.protocol1_12_2to1_13.providers.BackwardsBlockEntityProvider;
import us.myles.ViaVersion.api.Via;
Expand Down Expand Up @@ -74,7 +73,7 @@ public CompoundTag transform(UserConnection user, int blockId, CompoundTag tag)

Integer id = pistonIds.get(dataFromTag);
if (id == null) {
ViaBackwards.getPlatform().getLogger().warning("Unmapped piston id: " + dataFromTag);
//TODO see why this could be null and if this is bad
return tag;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ public void handle(PacketWrapper wrapper) throws Exception {
int statisticId = wrapper.read(Type.VAR_INT);

String name = "";
//TODO categories 0-7 (items, blocks, entities) - probably not feasible
// categories 0-7 (items, blocks, entities) - probably not feasible
switch (categoryId) {
case 0:
case 1:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ protected void registerRewrites() {
if (type.isOrHasParent(Entity1_14Types.EntityType.ABSTRACT_ILLAGER_BASE) || type == Entity1_14Types.EntityType.RAVAGER || type == Entity1_14Types.EntityType.WITCH) {
int index = e.getIndex();
if (index == 14) {
//TODO handle
throw RemovedValueException.EX;
} else if (index > 14) {
meta.setId(index - 1);
Expand Down

0 comments on commit bdc79c4

Please sign in to comment.