Commits

md_5 authored 85106731bf9
SPIGOT-5471: Allow empty title/author for books
No tags

src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java

Modified
156 156 case WRITTEN_BOOK:
157 157 case WRITABLE_BOOK:
158 158 return true;
159 159 default:
160 160 return false;
161 161 }
162 162 }
163 163
164 164 @Override
165 165 public boolean hasAuthor() {
166 - return !Strings.isNullOrEmpty(author);
166 + return this.author != null;
167 167 }
168 168
169 169 @Override
170 170 public boolean hasTitle() {
171 - return !Strings.isNullOrEmpty(title);
171 + return this.title != null;
172 172 }
173 173
174 174 @Override
175 175 public boolean hasPages() {
176 176 return !pages.isEmpty();
177 177 }
178 178
179 179 @Override
180 180 public boolean hasGeneration() {
181 181 return generation != null;

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut