--- a/net/minecraft/client/gui/overlay/DebugOverlayGui.java
+++ b/net/minecraft/client/gui/overlay/DebugOverlayGui.java
@@ -362,7 +362,7 @@
                list.add(this.func_211534_a(entry));
             }
 
-            for(ResourceLocation resourcelocation : this.field_175242_a.func_147114_u().func_199724_l().func_241835_a().func_199913_a(blockstate.func_177230_c())) {
+            for(ResourceLocation resourcelocation : blockstate.func_177230_c().getTags()) {
                list.add("#" + resourcelocation);
             }
          }
@@ -378,7 +378,7 @@
                list.add(this.func_211534_a(entry1));
             }
 
-            for(ResourceLocation resourcelocation1 : this.field_175242_a.func_147114_u().func_199724_l().func_241837_c().func_199913_a(fluidstate.func_206886_c())) {
+            for(ResourceLocation resourcelocation1 : fluidstate.func_206886_c().getTags()) {
                list.add("#" + resourcelocation1);
             }
          }
@@ -388,6 +388,7 @@
             list.add("");
             list.add(TextFormatting.UNDERLINE + "Targeted Entity");
             list.add(String.valueOf((Object)Registry.field_212629_r.func_177774_c(entity.func_200600_R())));
+            entity.func_200600_R().getTags().forEach(t -> list.add("#" + t));
          }
 
          return list;
